HEX to HWB converter
Enter a HEX value such as #FFBE0B to convert it to HWB. Every other format is shown too, and the result updates as you type.
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
- Light amber(descriptive)
- Alpha
- 100%
- Relative luminance
- 0.5811
- Perceived lightness (OKLCH L)
- 83.9%
- Contrast on white
- 1.66:1
- Contrast on black
- 12.62:1
Converted values
- HEX
#ffbe0b - RGB
rgb(255 190 11) - HSL
hsl(44 100% 52.2%) - HSV / HSB
hsv(44 95.7% 100%) - HWB
hwb(44 4.3% 0%) - OKLCH
oklch(83.85% 0.1709 83.34) - OKLAB
oklab(83.85% 0.0198 0.1698) - CIELAB
lab(81.39% 15.18 81.61) - CMYK
cmyk(0% 25% 96% 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().
How to convert HEX to HWB
- Convert HEX to RGB and compute the hue as for HSL.
- Whiteness is the smallest channel ÷ 255.
- Blackness is 1 − the largest channel ÷ 255.
- Write hwb(H W% B%).
About 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.
About 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.