Skip to content
ColorsGuide

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.

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
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

See shades, harmonies and palettes for #FFBE0B

Converted values

  • HEX#ffbe0b
  • RGBrgb(255 190 11)
  • HSLhsl(44 100% 52.2%)
  • HSV / HSBhsv(44 95.7% 100%)
  • HWBhwb(44 4.3% 0%)
  • OKLCHoklch(83.85% 0.1709 83.34)
  • OKLABoklab(83.85% 0.0198 0.1698)
  • CIELABlab(81.39% 15.18 81.61)
  • CMYKcmyk(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

  1. Convert HEX to RGB and compute the hue as for HSL.
  2. Whiteness is the smallest channel ÷ 255.
  3. Blackness is 1 − the largest channel ÷ 255.
  4. 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.

Examples

SwatchHEXHWB
#ffffffhwb(0 100% 0%)
#000000hwb(0 0% 100%)
#ff0000hwb(0 0% 0%)
#00a86bhwb(158.2 0% 34.1%)
#1e90ffhwb(209.6 11.8% 0%)
#ffd700hwb(50.6 0% 0%)
#800080hwb(300 0% 49.8%)
#ff7f50hwb(16.1 31.4% 0%)
#708090hwb(210 43.9% 43.5%)
#f5f5dchwb(60 86.3% 3.9%)
#264653hwb(197.3 14.9% 67.5%)
#e76f51hwb(12 31.8% 9.4%)

Other conversions

Was this page useful?