Description
White has a hue of 0°, saturation 0% and lightness 100%, which places it in the white family. Its strongest channel is red (255).
Using white in CSS
.title { color: white; }
.box { background: white; border-color: #ffffff; }
.soft { background: rgb(255 255 255 / 20%); } /* white at 20% opacity */Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.
Similar named colors
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| whitesmoke | #f5f5f5 | 245, 245, 245 | 2 |
| snow | #fffafa | 255, 250, 250 | 2.5 |
| ghostwhite | #f8f8ff | 248, 248, 255 | 3.8 |
| aliceblue | #f0f8ff | 240, 248, 255 | 4.6 |
| floralwhite | #fffaf0 | 255, 250, 240 | 4.9 |
| seashell | #fff5ee | 255, 245, 238 | 5.2 |
| mintcream | #f5fffa | 245, 255, 250 | 5.6 |
| linen | #faf0e6 | 250, 240, 230 | 6.3 |
ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.
Pairs well with
Readability
Contrast with white text: 1.00:1; with black text: 21.00:1. Black body text on white meets WCAG AA; white text does not.