Skip to content

White smoke

White smoke is an off-white: a very light gray with no tint at all. Hex code #F5F5F5.

White smoke#F5F5F5

White smoke color codes

  • CSS namewhitesmoke
  • HEX#F5F5F5
  • RGBrgb(245, 245, 245)
  • HSLhsl(0, 0%, 96%)
  • OKLCHoklch(97% 0 0)
HSB and CMYK values
  • HSB / HSVhsb(0, 0%, 96%)
  • CMYKC0 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

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.

GrayHexLightnessContrast with white smoke
Black#0000000%19.26:1
Dark slate gray#2F4F4F40%8.18:1
Dim gray#69696952%5.03:1
Slate gray#70809059%3.71:1
Gray#80808060%3.62:1
Light slate gray#77889962%3.34:1
Dark gray#A9A9A973%2.15:1
Silver#C0C0C081%1.66:1
Light gray#D3D3D387%1.37:1
Gainsboro#DCDCDC89%1.25:1
White smoke#F5F5F597%–
White#FFFFFF100%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.