Skip to content
ColorsGuide

Colour converter

Paste a colour in any common notation and get every other format instantly, with transparency preserved. Works entirely in your browser.

Example paletteUsed until you create or choose your own

Detected HEX.

Examples: #1e90ff, rgb(30 144 255 / 50%), hsl(210 100% 56%), oklch(0.65 0.18 255), cmyk(88% 44% 0% 0%), tomato

Name
Vermilion(descriptive)
Alpha
100%
Relative luminance
0.2832
Perceived lightness (OKLCH L)
68%
Contrast on white
3.15:1
Contrast on black
6.66:1

See shades, harmonies and palettes for #FF5733

Converted values

  • HEX#ff5733
  • RGBrgb(255 87 51)
  • HSLhsl(10.6 100% 60%)
  • HSV / HSBhsv(10.6 80% 100%)
  • HWBhwb(10.6 20% 0%)
  • OKLCHoklch(68.04% 0.21 33.69)
  • OKLABoklab(68.04% 0.1747 0.1165)
  • CIELABlab(61.03% 63.55 55.96)
  • CMYKcmyk(0% 66% 80% 0%)

CMYK is a naive, device-independent approximation. Real print colours depend on the ink, paper and ICC profile your printer uses, so ask your printer for a proofed conversion. HSV/HSB is not a CSS format and is shown for design apps. CIELAB uses the D50 white point, as in CSS lab().

Supported colour formats

HEX

A HEX code writes the red, green and blue channels of an sRGB colour as two hexadecimal digits each (00–FF), so #FF5733 means red 255, green 87, blue 51. An optional fourth pair adds transparency, and three-digit shorthand such as #F53 doubles each digit. #RRGGBB, #RGB, #RRGGBBAA

RGB

RGB gives the same three sRGB channels as decimal numbers from 0 to 255 (or 0–100%). Modern CSS writes rgb(255 87 51 / 50%) with spaces and a slash before the alpha; the older comma form rgba(255, 87, 51, 0.5) still works everywhere. rgb(R G B / A), rgba(R, G, B, A)

HSL

HSL describes a colour as a hue angle (0–360°), saturation and lightness. It is easy to adjust by hand, but its lightness is not perceptual: a yellow and a blue at 50% lightness look very different in brightness. hsl(H S% L% / A)

HSV / HSB

HSV (also called HSB) uses hue, saturation and value (brightness). It is the model behind the square picker in Photoshop, Figma and most design apps. It is not a CSS format, so convert to HEX or RGB for code. hsv(H S% V%)

HWB

HWB describes a hue plus how much white and black are mixed in. It is a CSS Color 4 format and is intuitive for tints and shades: add whiteness for a tint, blackness for a shade. hwb(H W% B% / A)

OKLCH

OKLCH is a perceptual colour space: L is perceived lightness (0–100%), C is chroma (colourfulness) and H is hue. Equal steps look roughly equal to the eye, which makes it the best choice for building colour scales and accessible palettes. Supported natively in CSS. oklch(L% C H / A)

OKLAB

OKLAB is the rectangular form of OKLCH: lightness plus a (green–red) and b (blue–yellow) axes. It is excellent for mixing and gradients because straight lines through it look smooth and avoid muddy midpoints. oklab(L% a b / A)

CIELAB

CIELAB (L*a*b*) is the classic device-independent colour space from 1976, used in print, paint matching and colour-difference formulas. CSS lab() uses the D50 white point, as do these conversions. lab(L% a b / A)

CMYK

CMYK gives the cyan, magenta, yellow and black ink percentages used in four-colour printing. A conversion from screen colours without an ICC profile is only an approximation; printers use profiles for the specific press and paper. cmyk(C% M% Y% K%)

Specific conversions

Was this page useful?