white — #FFFFFF
#FFFFFF
rgb(255, 255, 255) · hsl(0, 0%, 100%) · CSS keyword white
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| white on white | 1:1 | — | — |
| white on black | 21:1 | AA | AA |
As a background, white takes black text: 21:1 against 1:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: white;
color: #ffffff;
color: rgb(255 255 255);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to white
- snow — #FFFAFA
- ivory — #FFFFF0
- mintcream — #F5FFFA
- floralwhite — #FFFAF0
- ghostwhite — #F8F8FF
- azure — #F0FFFF
Frequently asked questions
What is the hex code for white?
The hex code for white is #FFFFFF — RGB 255, 255, 255.
Can I use white for text?
Not on a white background. white reaches only 1:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on white be black or white?
Black — 21:1 against 1:1 the other way.
Other named colours
- whitesmoke — #F5F5F5
- yellow — #FFFF00
- yellowgreen — #9ACD32
- aliceblue — #F0F8FF
- antiquewhite — #FAEBD7
- aqua — #00FFFF
- aquamarine — #7FFFD4
- azure — #F0FFFF
- beige — #F5F5DC
- bisque — #FFE4C4
- black — #000000
- blanchedalmond — #FFEBCD
#FFFFFF in full — tints, shades and harmonies · All named colours · Colour reference