CSS named color
WhiteSmoke #F5F5F5
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) | — |
| RGB | rgb(245, 245, 245) |
| RGBA | rgba(245, 245, 245, 1) |
| 8-digit HEX | #F5F5F5FF |
| HSL | hsl(0, 0%, 96%) |
| HSV / HSB | 0°, 0%, 96% |
| CMYK | 0%, 0%, 0%, 4% |
| RGB 0–1 | 0.961, 0.961, 0.961 |
| Decimal | 16119285 |
| CSS keyword | whitesmoke |
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
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | WhiteSmoke | 1.09:1 | Fail |
| Black | WhiteSmoke | 19.26:1 | AAA |
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.