About white
white (#FFFFFF) has all three channels at their maximum. Its hex code can also be written in short form as #FFF.
CSS also names several off-whites, such as whitesmoke (#F5F5F5), snow (#FFFAFA), ivory (#FFFFF0) and ghostwhite (#F8F8FF), which are softer for large backgrounds.
Shades of white
White is lighter than a usual 50 step, so it starts the scale and every other step is darker. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For white mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with white
White is a neutral color, so hue-based harmonies do not apply: it goes with any hue. Pair it with one accent color, or build a palette in the palette generator.
Text on white
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 1:1 | Fail | Fail | Fail |
| Black | 21:1 | Pass | Pass | Pass |
Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to white, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
white v4: white, #FFFFFF, exact match
white v3: white, #FFFFFF, exact match
Tailwind CSS has white as its own color, so bg-white and text-white give exactly #FFFFFF. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
White with color vision deficiency
White has almost no hue, so it looks the same with any type of color vision deficiency. What matters is its lightness contrast with the colors next to it.
Test a whole palette or image in the color blindness simulator.
Using white in code
.example {
color: white; /* named color */
background-color: #ffffff; /* hex */
border-color: rgb(255, 255, 255);
}
