Welcome, Guest — free tools, no signup
Server Time: Jul 17, 2026, 10:30 AM
Home » Converters » Color Converter (HEX ⇄ RGB ⇄ HSL)

Color Converter (HEX ⇄ RGB ⇄ HSL)

🔒 Runs in your browser — nothing you enter is uploaded.

Enter a color in any common format — #ff5733, rgb(255,87,51) or hsl(11,100%,60%) — and get all equivalents with a live preview and a generated shade scale.

Result
HEX#ff5733
RGBrgb(255, 87, 51)
HSLhsl(11, 100%, 60%)
Shade Scale (click to select)

You may also need

Popular next tools

All Converters »   Search all tools »

ADVERTISEMENT Google AdSense - Responsive Content Banner (600 x 100)

How to use the Color Converter

  1. Type a HEX, RGB or HSL value.
  2. See the other formats and the preview update instantly.
  3. Copy the value you need.

Common use cases

  • Turn a HEX code from a design into RGB for CSS or apps
  • Find lighter and darker shades of a brand color

Example

#3B5998 = rgb(59, 89, 152) = hsl(221, 44%, 41%).

HEX vs RGB vs HSL — Which Format When?

HEX (#ff5733) is the compact web standard, ideal for copy-pasting between tools. RGB expresses the same value as red/green/blue channels and is required when you need alpha transparency (rgba). HSL describes hue, saturation and lightness — by far the easiest format for humans to adjust: want it darker? Lower the L value.

All three formats describe the same sRGB color space, so conversion is lossless. Modern CSS also supports newer spaces (LCH, OKLCH) for wider gamuts, but sRGB formats remain the compatibility baseline.

Frequently Asked Questions (FAQ)

Q: How do I convert HEX to RGB by hand?
A: Split the hex code into pairs and convert each from base-16: ff→255, 57→87, 33→51 gives rgb(255, 87, 51).
Q: What is the L in HSL?
A: Lightness: 0% is black, 100% is white, and 50% is the pure hue. Adjusting only L creates consistent shade scales.
Q: Does the tool support transparency?
A: Enter rgba()/hsla() values and the alpha channel is preserved in the RGB output.