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 keyword | white |
|---|---|
| HEX | #FFFFFF |
| RGB | rgb(255 255 255) |
| HSL | hsl(0 0% 100%) |
| OKLCH | oklch(100.0% 0.000 0) |
| White text | 1.00:1 · body text AA Fail |
| Black text | 21.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.
| Colour | HEX | Contrast with White | Body text AA |
|---|---|---|---|
| Old Rose | #D46D7A | 3.35:1 | Fail |
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.
- 100#F5F5F5
- 200#E4E4E4
- 300#CECECE
- 400#B1B1B1
- 500#929292
- 600#717171
- 700#555555
- 800#3A3A3A
- 900#222222
: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