White color #FFFFFF
rgb(255, 255, 255) · oklch(100% 0 0)
White (#FFFFFF) is a very light, grayish white. It mixes 100% red, 100% green and 100% blue, with a perceived lightness of 100% in OKLCH. Black text reads best on it (21.00:1 vs 1.00:1). The closest other CSS color is Snow (#FFFAFA).
White color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of white
Shades mix white with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
White as a UI color scale (50–950)
An 11-step scale for design systems, with white placed at step 50. Copy it as a Tailwind v4 theme below.
Colors that go with white
Harmonies are computed on the OKLCH hue wheel, keeping white’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is white accessible? Contrast with white and black
1.00:1
AA fail AA large fail AAA fail
21.00:1
AA pass AA large pass AAA pass
- As a background, white works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
How white looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#ffffff Red-blind. Reds look dark and brownish; red and green are easily confused.
#ffffff Green-blind, the most common strong form. Red, green, orange and brown look similar.
#ffffff Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#ffffff Total color blindness, very rare. Only lightness differences are visible.
Colors similar to white
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use white in CSS and Tailwind
CSS custom properties
:root {
--white: #ffffff;
--white-rgb: 255 255 255;
}
.text-white { color: var(--white); }
.bg-white { background-color: var(--white); }
Tailwind v4 theme
@theme {
--color-white-50: #ffffff;
--color-white-100: #ededed;
--color-white-200: #dbdadb;
--color-white-300: #c3c0c1;
--color-white-400: #a5a0a1;
--color-white-500: #8b8486;
--color-white-600: #736d6e;
--color-white-700: #5b5758;
--color-white-800: #474445;
--color-white-900: #373535;
--color-white-950: #201f1f;
}
Make a gradient from white: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.