White #FFFFFF

White color (#FFFFFF)

White is one of the 148 CSS named colors. Use the keyword white anywhere CSS accepts a color, or its hex code #FFFFFF, which is rgb(255, 255, 255) in RGB.

It is a very light neutral and a perceived lightness of 100% in OKLCH. On a white background, black text gives the higher contrast at 21.00:1, which passes WCAG AA for normal text.

White color codes

CSS name white
HEX #FFFFFF
HEX (8-digit) #FFFFFFFF
RGB rgb(255, 255, 255)
HSL hsl(0, 0%, 100%)
HSV / HSB hsv(0, 0%, 100%)
OKLCH oklch(100% 0 89.9)
CMYK cmyk(0%, 0%, 0%, 0%)

Contrast with white and black

WCAG 2 contrast ratios and APCA lightness contrast (Lc) for white used as text and as a background.

Aa Sample text
White text on white
1.00:1 WCAG Lc 0 APCA Fails AA
Aa Sample text
White text on black
21.00:1 WCAG Lc -107.9 APCA Passes AA
Aa Sample text
White text on white
1.00:1 WCAG Lc 0 APCA Fails AA
Aa Sample text
Black text on white
21.00:1 WCAG Lc 106 APCA Passes AA

Tints and shades of white

Tints mix white with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.

Tints

Shades

Colors that go with white

Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.

Complementary

Analogous

Triadic

Split-Complementary

White with color blindness

Approximately how white appears with each type of color vision deficiency. Test full designs with the color blindness simulator.

Using white in CSS

.element {
  color: white;
  background-color: #ffffff;
  border-color: rgb(255 255 255 / 50%);
  outline-color: oklch(100% 0 89.9);
}

Similar named colors

See all shades of white or browse every CSS color name.

Related tools