Swatchproof

White #FFFFFF

White is one of the named colours in CSS, written white. Black text reaches 21.00:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordwhite
HEX#FFFFFF
RGBrgb(255 255 255)
HSLhsl(0 0% 100%)
OKLCHoklch(100.0% 0.000 0)
White text1.00:1 · body text AA Fail
Black text21.00:1 · body text AA Pass

Colours that go with White

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is White (#FFFFFF), nearly identical. These are the colours Wada paired it with, ranked by their contrast with White itself.

ColourHEXContrast with WhiteBody text AA
Old Rose#D46D7A3.35:1Fail

Palettes with White

Shades and tints of White

Nine lightness steps in OKLCH that keep the hue of White. Chroma is reduced only where sRGB cannot show it.

:root {
  --white-100: #F5F5F5;
  --white-200: #E4E4E4;
  --white-300: #CECECE;
  --white-400: #B1B1B1;
  --white-500: #929292;
  --white-600: #717171;
  --white-700: #555555;
  --white-800: #3A3A3A;
  --white-900: #222222;
}

Text that keeps White on screen

Text #222222 on #FFFFFF reaches 15.91:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours