HEX & RGB
The classic web formats. HEX is a compact hexadecimal notation (#ff5733), and RGB uses three 0–255 values for red, green, and blue channels. Universally supported.
Convert between HEX, RGB, HSL and OKLCH instantly, pick from 148 named CSS colors, and copy the code with one click.
#4682b4rgb(70, 130, 180)hsl(207, 44%, 49%)oklch(58.80% 0.0993 245.74)The classic web formats. HEX is a compact hexadecimal notation (#ff5733), and RGB uses three 0–255 values for red, green, and blue channels. Universally supported.
Hue (0–360°), Saturation (0–100%), Lightness (0–100%). Intuitive for designers — easy to tweak one dimension without touching the others.
A perceptually uniform color space — colors with the same lightness (L) value actually appear equally bright. The modern standard for design systems.
HEX (#ff0000) and RGB (rgb(255,0,0)) describe a color by the intensity of red, green, and blue channels. HSL (hsl(0, 100%, 50%)) describes color by hue, saturation, and lightness — more intuitive for designers. OKLCH is a newer standard designed to match human perception — equal numerical differences appear equally different to the eye.
CSS Color Module Level 4 defines 148 named colors (excluding "transparent"). They range from primary colors like red, blue, and green to descriptive ones like AliceBlue, RebeccaPurple, or PapayaWhip. This page lists all 148.
Enter or pick a color, then press "Copy" next to the format you want — HEX, RGB, HSL, or OKLCH. You can also click any color in the palette to see its full breakdown.
The complementary color is the one directly opposite on the color wheel — 180° away. Complementary pairs create the strongest contrast and are commonly used for accents and highlights.
OKLCH is a modern color space (Björn Ottosson, 2020) that represents colors the way the eye perceives them. Two colors with the same "lightness" (L) value will appear equally bright — something HSL doesn't guarantee. It's supported in all modern browsers.
No. All conversions run entirely in your browser. No information is ever sent to a server or stored.