Skip to content

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

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is white accessible? Contrast with white and black

White text on white

1.00:1

AA fail AA large fail AAA fail

White text on black

21.00:1

AA pass AA large pass AAA pass

Check white against any other color

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.

Protanopia: #ffffff
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #ffffff
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #ffffff
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #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).

ΔE 1.2 Snow
#fffafa
ΔE 1.5 Mint Cream
#f5fffa
ΔE 1.9 Azure
#f0ffff
ΔE 2.0 Floral White
#fffaf0

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.

More white colors