White Smoke color (#F5F5F5)
White Smoke is one of the 148 CSS named colors. Use the keyword whitesmoke
anywhere CSS accepts a color, or its hex code #F5F5F5, which is rgb(245, 245, 245) in RGB.
It is a very light neutral and a perceived lightness of 97% in OKLCH. On a white smoke background, black text gives the higher contrast at 19.26:1, which passes WCAG AA for normal text.
White Smoke color codes
| CSS name | whitesmoke |
|
|---|---|---|
| HEX | #F5F5F5 |
|
| HEX (8-digit) | #F5F5F5FF |
|
| RGB | rgb(245, 245, 245) |
|
| HSL | hsl(0, 0%, 96%) |
|
| HSV / HSB | hsv(0, 0%, 96%) |
|
| OKLCH | oklch(97% 0 89.9) |
|
| CMYK | cmyk(0%, 0%, 0%, 3.9%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for white smoke used as text and as a background.
Tints and shades of white smoke
Tints mix white smoke with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with white smoke
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
White Smoke with color blindness
Approximately how white smoke appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using white smoke in CSS
.element {
color: whitesmoke;
background-color: #f5f5f5;
border-color: rgb(245 245 245 / 50%);
outline-color: oklch(97% 0 89.9);
}Similar named colors
See all shades of white or browse every CSS color name.