Skip to content

White Smoke

Hex #F5F5F5, rgb(245 245 245). A white CSS named color.

Open in palette generator

White Smoke color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About White Smoke

White Smoke is a very light near-white with the hex code #F5F5F5. In RGB it is made of 245 red, 245 green and 245 blue; in HSL its hue is 0°, with 0% saturation and 96% lightness. Its perceptual lightness (OKLCH L) is 97.0%.

It is a CSS named color, so you can write "whitesmoke" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.09:1 and against black 19.26:1, so black text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

White Smoke mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

White Smoke 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with White Smoke

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Square

Monochromatic

Contrast and readability

WCAG 2 contrast of White Smoke with white and black. The readable text color on White Smoke is black.

White Smoke textSmall text on white

On white1.09:1

  • AA fail
  • AA Large fail
  • AAA fail
  • UI 3:1 fail

APCA Lc 0

White Smoke textSmall text on black

On black19.26:1

  • AA pass
  • AA Large pass
  • AAA pass
  • UI 3:1 pass

APCA Lc -101

Black text on White Smoke (#000000)

Test any pair in the contrast checker.

Color blindness preview

How White Smoke appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#F5F5F5
  • Deuteranopia#F5F5F5
  • Tritanopia#F5F5F5
  • Protanomaly#F5F5F5
  • Deuteranomaly#F5F5F5
  • Tritanomaly#F5F5F5
  • Achromatopsia#F5F5F5

Colors similar to White Smoke

The closest named colors by perceptual difference (OKLab).

Use White Smoke in CSS and Tailwind

CSS
.white-smoke {
  color: whitesmoke; /* #F5F5F5 */
  background-color: rgb(245 245 245);
  border-color: oklch(97% 0 0);
}
Tailwind CSS
/* Tailwind CSS v4: bg-white-smoke-500, text-white-smoke-700... */
@theme {
  --color-white-smoke-50: #F5F5F5;
  --color-white-smoke-100: #E8E8E8;
  --color-white-smoke-200: #D6D6D6;
  --color-white-smoke-300: #BCBCBC;
  --color-white-smoke-400: #999999;
  --color-white-smoke-500: #838383;
  --color-white-smoke-600: #707070;
  --color-white-smoke-700: #5A5A5A;
  --color-white-smoke-800: #484848;
  --color-white-smoke-900: #3A3A3A;
  --color-white-smoke-950: #161616;
}

<!-- or the exact color, no config -->
<div class="bg-[#F5F5F5] text-[#000000]">…</div>