White Smoke Hex Code #F5F5F5
White Smoke is a very light off-white with the hex code #F5F5F5. In RGB it is 245, 245, 245, and in HSL it is 0°, 0%, 96%. It is one of the 148 named colors in CSS, so you can write “whitesmoke” instead of the hex code.
- HEX
- #F5F5F5
- RGB
- rgb(245, 245, 245)
- HSL
- hsl(0, 0%, 96%)
- HSV
- hsv(0°, 0%, 96%)
- CMYK
- cmyk(0%, 0%, 0%, 4%)
- CSS name
- whitesmoke
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About White Smoke
On a white background White Smoke has a contrast ratio of 1.09:1 (Fail), and on black 19.26:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Near-white colors work well as backgrounds and surfaces. Their slight tint feels softer than pure white, which can look harsh across a large screen.
Shades and tints of White Smoke
Tints mix White Smoke with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing White Smoke with an accent color
White Smoke has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with White Smoke.
- Crimson #DC143C 4.58:1 against White Smoke (WCAG AA)
- Dark Orange #FF8C00 2.14:1 against White Smoke (WCAG Fail)
- Gold #FFD700 1.29:1 against White Smoke (WCAG Fail)
- Sea Green #2E8B57 3.89:1 against White Smoke (WCAG AA Large)
- Royal Blue #4169E1 4.45:1 against White Smoke (WCAG AA Large)
- Dark Orchid #9932CC 5.23:1 against White Smoke (WCAG AA)
White Smoke contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how White Smoke scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.09:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 19.26:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
White Smoke and color blindness
These are approximate previews of how White Smoke can look with the main types of color vision deficiency.
White Smoke looks almost the same.
White Smoke looks almost the same.
White Smoke looks almost the same.
White Smoke looks almost the same.
Gradients with White Smoke
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
White Smoke to a lighter tint
background: linear-gradient(135deg, #f5f5f5 0%, #fbfbfb 100%); White Smoke to a darker shade
background: linear-gradient(135deg, #f5f5f5 0%, #626262 100%); White Smoke to Dark Orchid
background: linear-gradient(135deg, #f5f5f5 0%, #9932cc 100%); Colors similar to White Smoke
How each close match differs from White Smoke.
- Snow #FFFAFA Very close in lightness, saturation and hue.
- White #FFFFFF Slightly lighter.
- Ghost White #F8F8FF Very close in lightness, saturation and hue.
- Alice Blue #F0F8FF Very close in lightness, saturation and hue.
- Mint Cream #F5FFFA Very close in lightness, saturation and hue.
- Seashell #FFF5EE Very close in lightness, saturation and hue.
Use White Smoke in code
.element {
color: #f5f5f5;
background-color: #f5f5f5;
border-color: whitesmoke; /* whitesmoke is a valid CSS color name */
} :root {
--color-white-smoke: #f5f5f5;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#f5f5f5] text-[#f5f5f5] border-[#f5f5f5]"></div>
/* Tailwind v4 theme color */
@theme {
--color-white-smoke: #f5f5f5;
} White Smoke questions
What is the hex code for White Smoke?
The hex code for White Smoke is #F5F5F5. In RGB that is rgb(245, 245, 245), and in HSL it is hsl(0, 0%, 96%).
Which colors go well with White Smoke?
White Smoke is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (5.23:1), Crimson (4.58:1), Royal Blue (4.45:1).
Should I use white or black text on White Smoke?
Black text. It has a contrast ratio of 19.26:1 against White Smoke, which is WCAG AAA. The other option scores 1.09:1.
Is White Smoke accessible as a text color on white?
No. White Smoke on white scores 1.09:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of White Smoke?
Mixing White Smoke with black gives #C4C4C4, #939393, #626262, #313131 (20% to 80% black). Mixing it with white gives #F7F7F7, #F9F9F9, #FBFBFB, #FDFDFD (20% to 80% white).