whitesmoke — #F5F5F5
#F5F5F5
rgb(245, 245, 245) · hsl(0, 0%, 96%) · CSS keyword whitesmoke
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| whitesmoke on white | 1.09:1 | — | — |
| whitesmoke on black | 19.26:1 | AA | AA |
As a background, whitesmoke takes black text: 19.26:1 against 1.09: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: whitesmoke;
color: #f5f5f5;
color: rgb(245 245 245);
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 whitesmoke
- ghostwhite — #F8F8FF
- aliceblue — #F0F8FF
- seashell — #FFF5EE
- oldlace — #FDF5E6
- lavenderblush — #FFF0F5
- linen — #FAF0E6
Frequently asked questions
What is the hex code for whitesmoke?
The hex code for whitesmoke is #F5F5F5 — RGB 245, 245, 245.
Can I use whitesmoke for text?
Not on a white background. whitesmoke reaches only 1.09:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on whitesmoke be black or white?
Black — 19.26:1 against 1.09:1 the other way.
Other named colours
- yellow — #FFFF00
- yellowgreen — #9ACD32
- aliceblue — #F0F8FF
- antiquewhite — #FAEBD7
- aqua — #00FFFF
- aquamarine — #7FFFD4
- azure — #F0FFFF
- beige — #F5F5DC
- bisque — #FFE4C4
- black — #000000
- blanchedalmond — #FFEBCD
- blue — #0000FF
#F5F5F5 in full — tints, shades and harmonies · All named colours · Colour reference