Xerobit

White Hex Code and Color Values

White (CSS keyword white) is #FFFFFF: rgb(255, 255, 255), hsl(0, 0%, 100%).

White: #FFFFFF

  • Hex
    #FFFFFF
  • RGB
    rgb(255, 255, 255)
  • HSL
    hsl(0, 0%, 100%)
  • OKLCH
    oklch(100.0% 0.0000 0.0)
  • CMYK
    0%, 0%, 0%, 0%
  • CSS name
    white

Where the name white comes from

white is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #FFFFFF; CSS Color 4 says these came from the VGA palette.

white is the lightest color there is: relative luminance 1.0, and its contrast against black is 21:1, the largest value the WCAG 2 formula gives.

Short form: #FFF.

Shades and tints of White

  • 10% white #FFFFFF white; 10% black #E6E6E6 lavender
  • 20% white #FFFFFF white; 20% black #CCCCCC lightgray
  • 30% white #FFFFFF white; 30% black #B3B3B3 darkgray
  • 40% white #FFFFFF white; 40% black #999999
  • 50% white #FFFFFF white; 50% black #808080 gray

Contrast of #FFFFFF

Against white 1.00:1 (fails), against black 21.00:1 (passes AAA); black text reads better on White. In HSV it is hsv(0, 0%, 100%).

Lightness rank 1 of 139; best partner black, 21.00:1.

Closest names to White

White has no hue (OKLCH chroma 0.000). None of its 7 nearest keywords is neutral: all have a hue.

NameHexOKLab distanceThan White
snow#FFFAFA0.012darker
mintcream#F5FFFA0.015darker
azure#F0FFFF0.019darker
floralwhite#FFFAF00.020darker
ivory#FFFFF00.020darker
ghostwhite#F8F8FF0.021darker
aliceblue#F0F8FF0.028darker

Color harmony for White

No hue, so every harmony scheme is White itself.

White with color vision deficiency

  • Protanopia: #FFFFFF
  • Deuteranopia: #FFFFFF
  • Tritanopia: #FFFFFF

FAQ

What is the hex code for White?

#FFFFFF, or the keyword white.

Which named color is closest to White?

snow (#FFFAFA), then mintcream and azure.