331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Color Picker & Converter

Every design tool speaks a different colour language: HEX in stylesheets, RGB in design tools, HSL when you want to shift a shade lighter or darker. Converting between them by hand means arithmetic nobody enjoys.

Pick a colour — or type a HEX, RGB or HSL value — and see all three formats instantly, with a live preview swatch.

Converted Colour

Save to Pinterest

How It Works

HEX, RGB and HSL are three ways of writing the same colour. HEX packs the red, green and blue channels into six hexadecimal digits: #3b82f6 means red 3b (59), green 82 (130), blue f6 (246). RGB writes those same three numbers in decimal: rgb(59, 130, 246). HSL describes the colour differently — hue (the position on the colour wheel, 0–360 degrees), saturation (how vivid, 0–100%), and lightness (how bright, 0–100%).

HSL is the most useful format for adjusting a colour: raise the lightness to make a lighter shade of the same colour, lower the saturation to mute it, shift the hue to move around the wheel. HEX and RGB cannot do that without arithmetic, which is why designers convert to HSL, tweak one number, and convert back.

Worked Example

The blue #3b82f6 converts to rgb(59, 130, 246) and to hsl(217, 91%, 60%) — a hue of 217 degrees (blue), 91% saturation (very vivid), 60% lightness (mid-bright). Raise its lightness to 75% and you get a soft sky blue; drop its saturation to 30% and it turns into a muted steel blue.

How to Use This Tool

Pick a colour with the picker, or type a value in any format — the other formats update instantly.

  1. Pick or type. Use the colour picker, or type a HEX value (#3b82f6), RGB numbers, or HSL numbers — whichever you have.
  2. See all three formats. The result shows HEX, RGB and HSL together, with a preview swatch of the colour.
  3. Copy what you need. Copy HEX for a stylesheet, RGB for a design tool, or HSL when you want to tweak the shade.

Short HEX works too: #09f expands to #0099ff automatically. Values outside their range are clamped — red 300 becomes 255.

Tips and Practical Advice

How HEX, RGB and HSL Relate

HEX and RGB are the same information in two notations. A HEX code is three pairs of hexadecimal digits, one pair per channel, each pair worth 0–255: #ff6b35 means red ff (255), green 6b (107) and blue 35 (53), which is rgb(255, 107, 53). Converting between them is pure arithmetic — no colour is lost and no rounding happens, which is why this tool converts HEX to RGB exactly, in both directions.

HSL is a different way of thinking about the same colour. Instead of mixing three lights, it describes a colour by its position on the colour wheel (hue, 0–360°), how vivid it is (saturation, 0–100%) and how bright (lightness, 0–100%). The same orange #ff6b35 is hsl(16, 100%, 60%): a hue 16° from red, fully saturated, at 60% lightness. The blue on this page, #3b82f6, is hsl(217, 91%, 60%) — the hue of 217° puts it in the blue band of the wheel, between cyan (180°) and magenta (300°).

HSL’s advantage is that one number changes one quality. Keep the hue and saturation of #3b82f6 and raise the lightness from 60% to 75% and you get #85b2f9, a soft sky blue; drop it to 30% and you get #073c92, a deep navy — the same blue, lighter and darker. Drop the saturation to 30% at the same lightness and you get #7a92b8, a muted steel blue. Doing the same by editing HEX digits means guessing at three numbers at once. That is why designers pick a colour in HEX, convert to HSL to build shades and tints, then convert back.

Two more HSL tricks are worth knowing. The complementary colour — the one directly opposite on the wheel — is the hue plus 180°: 217° + 180° = 397°, which wraps around to 37°, an amber that at the same saturation and lightness is #f6af3c. Complementary pairs make strong accents because each colour makes the other look more vivid. And remember that converting between RGB and HSL involves rounding: HSL values are stored as whole numbers, so a round trip can shift a channel by 1 — the difference is invisible, but it is why the numbers can move slightly after converting twice.

Last reviewed: 21 November 2026.

Frequently Asked Questions

What is the difference between HEX, RGB and HSL?

HEX and RGB describe a colour by its red, green and blue channels — HEX as six hexadecimal digits, RGB as three decimals. HSL describes it by hue (wheel position), saturation (vividness) and lightness (brightness). All three can describe any colour exactly.

How do I make a lighter shade of a colour?

Convert to HSL and raise the lightness: the same hue and saturation at 75% lightness is a lighter version of the 60% original. Lower the lightness for a darker shade.

Does this tool support short HEX like #09f?

Yes — #09f expands to #0099ff automatically. You can type HEX with or without the # sign.

Why do my RGB numbers change slightly after converting?

HSL values are rounded to whole numbers, so converting RGB to HSL and back can shift a channel by 1. The difference is invisible to the eye.

What is the complementary colour of #3b82f6?

Add 180° to its hue: 217° + 180° = 397°, which wraps to 37° — an amber. At the same saturation (91%) and lightness (60%) that is #f6af3c. Complementary pairs sit opposite on the colour wheel and make strong accents for each other.

Can every HEX colour be written as HSL?

Yes — every RGB colour has exactly one HSL equivalent, and the conversion is exact up to rounding. HSL values are rounded to whole numbers, so converting RGB to HSL and back can shift a channel by 1, but the colour you see is unchanged.

Last updated: