Skip to content

White smoke

White smoke is a white. Hex code #F5F5F5.

White smoke#F5F5F5

Color codes

  • CSS namewhitesmoke
  • HEX#F5F5F5
  • RGBrgb(245 245 245)
  • HSLhsl(0 0% 96%)
  • HSB / HSVhsb(0, 0%, 96%)
  • OKLCHoklch(97% 0 0)
  • CMYKcmyk(0%, 0%, 0%, 4%)

White text

1.09:1 · fails WCAG

Black text

19.26:1 · passes WCAG AAA

Shades

50#F2F2F2
100#D4D4D4
200#B8B8B8
300#9C9C9C
400#828282
500#686868
600#4F4F4F
700#383838
800#222222

Tones

#6F6F6F
#929292
#B7B7B7
#DEDEDE
#F5F5F5

About this color

White smoke in CSS and design

White smoke is a white. White smoke is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: whitesmoke;
color: #F5F5F5;
color: rgb(245 245 245);
color: hsl(0 0% 96%);

For text on white smoke, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

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), in HSL hsl(0 0% 96%). For print, cmyk(0%, 0%, 0%, 4%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

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.

Which colors go with white smoke?

As a neutral, white smoke goes with almost any color. It works well as a background, border or text color next to a vivid accent, and with the lighter and darker tones from its shades.