Skip to content
Color Codes

CSS named color

WhiteSmoke Color Code

WhiteSmoke is a very light gray with the hex code #F5F5F5. In RGB it is rgb(245, 245, 245), in HSL hsl(0, 0%, 96%) and in CMYK cmyk(0%, 0%, 0%, 4%).

WhiteSmoke
#F5F5F5

Color values

In CSS you can write it as the keyword whitesmoke.

White text on WhiteSmoke has a contrast ratio of 1.09:1 and black text 19.26:1, so black text is the more readable choice.

The closest Tailwind CSS color is Neutral 100 (#F5F5F5).

Use WhiteSmoke in CSS

.element {
  color: whitesmoke;
  background-color: #f5f5f5;
  border-color: rgb(245, 245, 245);
}

Tints and shades of WhiteSmoke

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with WhiteSmoke

Color-wheel harmonies built from #F5F5F5. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on WhiteSmoke

Aa
White text
1.09:1
Fail
Aa
Black text
19.26:1
AAA
Check in the contrast checker

Colors similar to WhiteSmoke

Palettes with similar colors

Questions about WhiteSmoke

What is the hex code for WhiteSmoke?

The hex code for WhiteSmoke is #F5F5F5. Its RGB value is rgb(245, 245, 245) and its HSL value is hsl(0, 0%, 96%).

What colors go with WhiteSmoke?

The complementary color of WhiteSmoke is undefined. For a softer scheme try the analogous colors ; for a balanced three-color scheme use the triadic colors .

Is WhiteSmoke readable as a text color?

On a white background WhiteSmoke has a contrast ratio of 1.09:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 19.26:1.

More white colors