CSS named color

WhiteSmoke #F5F5F5

whitesmoke rgb(245, 245, 245)

WhiteSmoke is a very light gray with the hex code #F5F5F5, which converts to rgb(245, 245, 245). Open #F5F5F5 in the converter to tweak it.

WhiteSmoke color values

HEX#F5F5F5
HEX (shorthand)—
RGBrgb(245, 245, 245)
RGBArgba(245, 245, 245, 1)
8-digit HEX#F5F5F5FF
HSLhsl(0, 0%, 96%)
HSV / HSB0°, 0%, 96%
CMYK0%, 0%, 0%, 4%
RGB 0–10.961, 0.961, 0.961
Decimal16119285
CSS keywordwhitesmoke

How #F5F5F5 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: F5 → 245, F5 → 245, F5 → 245. That gives rgb(245, 245, 245). The step-by-step guide explains the math.

Shades of WhiteSmoke

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of WhiteSmoke

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of WhiteSmoke on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

WhiteSmoke has no hue (saturation is 0%), so hue-based harmonies collapse to the same gray. Grays pair with any accent color — pick one from the palette generator.

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White WhiteSmoke 1.09:1Fail
Black WhiteSmoke 19.26:1AAA

Use black text on a whitesmoke background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use WhiteSmoke in CSS

.element {
  color: whitesmoke;                         /* keyword */
  background-color: #F5F5F5;            /* hex */
  border-color: rgb(245 245 245 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #F5F5F580 is WhiteSmoke at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for WhiteSmoke?

The CSS named color whitesmoke is #F5F5F5 in hexadecimal. In CSS you can write color: whitesmoke; or color: #F5F5F5; — both produce the same pixel.

What is WhiteSmoke in RGB?

WhiteSmoke is rgb(245, 245, 245): red 245, green 245, blue 245 on the 0–255 scale. As normalized 0–1 floats that is (0.961, 0.961, 0.961).

Is white or black text more readable on WhiteSmoke?

Black text is more readable. White on #F5F5F5 has a contrast ratio of 1.09:1 (Fail), black on #F5F5F5 has 19.26:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!