White smoke
White smoke is an off-white: a very light gray with no tint at all. Hex code #F5F5F5.
White smoke color codes
- CSS name
whitesmoke - HEX
#F5F5F5 - RGB
rgb(245, 245, 245) - HSL
hsl(0, 0%, 96%) - OKLCH
oklch(97% 0 0)
HSB and CMYK values
- HSB / HSV
hsb(0, 0%, 96%) - CMYK
C0 M0 Y0 K4
White text
1.09:1 · fails WCAG
Black text
19.26:1 · passes WCAG AAA
Shades of white smoke
A darker shade of white smoke is #D4D4D4 (100).
Colors that go with white smoke
Tones
White smoke has no complementary color: grays, black and white have no hue to turn around the color wheel.
Click a color to copy its hex code.
Colors similar to white smoke
- Alice blue#F0F8FF
Almost the same, a faint blue tint
- Ghost white#F8F8FF
Almost the same, a faint blue tint
- Seashell#FFF5EE
Almost the same, a faint orange tint
- Lavender blush#FFF0F5
Almost the same, a faint pink tint
- Snow#FFFAFA
Almost the same, slightly lighter, a faint pink tint
- Linen#FAF0E6
Almost the same, a faint orange tint
Each compared with white smoke.
About this color
White smoke in CSS and design
White smoke is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same white smoke:
color: whitesmoke;
color: #F5F5F5;
color: rgb(245, 245, 245);
color: hsl(0, 0%, 96%);What to know about white smoke
White smoke (#F5F5F5) is the only near-white in CSS without a tint: every other one, from snow to ivory or alice blue, leans slightly toward a color. That makes it a neutral choice for a background just off white, and black text on it still reaches 19.26:1.
White smoke and the other grays
White smoke sits between gainsboro (#DCDCDC) and white (#FFFFFF) in lightness. As text on white smoke, black, dark slate gray and dim gray reach the 4.5:1 contrast that WCAG AA asks for.
| Gray | Hex | Lightness | Contrast with white smoke |
|---|---|---|---|
| Black | #000000 | 0% | 19.26:1 |
| Dark slate gray | #2F4F4F | 40% | 8.18:1 |
| Dim gray | #696969 | 52% | 5.03:1 |
| Slate gray | #708090 | 59% | 3.71:1 |
| Gray | #808080 | 60% | 3.62:1 |
| Light slate gray | #778899 | 62% | 3.34:1 |
| Dark gray | #A9A9A9 | 73% | 2.15:1 |
| Silver | #C0C0C0 | 81% | 1.66:1 |
| Light gray | #D3D3D3 | 87% | 1.37:1 |
| Gainsboro | #DCDCDC | 89% | 1.25:1 |
| White smoke | #F5F5F5 | 97% | – |
| White | #FFFFFF | 100% | 1.09:1 |
Lightness is OKLCH lightness, which follows how light a color looks.
Frequently asked questions
What is the hex code for white smoke?
#F5F5F5. In CSS you can also use the keyword whitesmoke, which works in every browser.
What is white smoke in RGB and HSL?
In RGB it is rgb(245, 245, 245) and in HSL hsl(0, 0%, 96%). In CMYK it is about C0 M0 Y0 K4, though printed colors vary with paper and ink.
Should I use black or white text on white smoke?
Black text works better: it has a contrast ratio of 19.26:1 and passes WCAG AAA. White text reaches 1.09:1.
What is the complementary color of white smoke?
White smoke has no complementary color. A complement is found by turning a color's hue halfway around the color wheel, and grays, black and white have no hue to turn.
Which colors go with white smoke?
As a neutral, white smoke goes with almost any color. Its own tones, from #6F6F6F to #F5F5F5, make a calm palette, and a single vivid accent stands out against it.