#F5F5F5: whitesmoke and neutral-100 codes and contrast
By TechCompare · Updated · How we check
#F5F5F5 is rgb(245, 245, 245). CSS calls it whitesmoke, and it's also neutral-100 in Tailwind and Grey 100 in Material Design. Black text scores 19.26:1 on it. White sits only 1.09:1 away.
Color Codes
- HEX
#F5F5F5 - RGB
rgb(245, 245, 245) - HSL
hsl(0, 0%, 96%) - OKLCH
oklch(97.02% 0 0)
Text on #F5F5F5
White Text
Aa
The quick brown fox jumps over the lazy dog.
1.09:1APCA Lc 0.0
- AA Normal (4.5:1)Fail
- AA Large (3:1)Fail
- AAA Normal (7:1)Fail
- AAA Large (4.5:1)Fail
Black Text
Aa
The quick brown fox jumps over the lazy dog.
19.26:1APCA Lc 100.1
- AA Normal (4.5:1)Pass
- AA Large (3:1)Pass
- AAA Normal (7:1)Pass
- AAA Large (4.5:1)Pass
WCAG 2 ratios are the same whichever color is the text, so they also hold for #F5F5F5 text on a white or black page. APCA is a newer method that isn't part of any WCAG standard, and a minus sign means light text on dark.
#F5F5F5 sets all three channels to 245, a neutral off white with no tint. Few colors have this many names. It's the CSS color whitesmoke, Tailwind's neutral-100, and Grey 100 in Google's Material palette, which Flutter ships as Colors.grey.shade100. The cards above give its codes and test text on it. It's too pale for lighter steps, so the shade scale below runs 8 steps darker.
Shades
Same hue and chroma in OKLCH, with even steps of lightness. Open any shade in the Color Picker.
Nearest Named Colors
CSS Name
whitesmoke
#F5F5F5
ExactΔE OK 0.000Tailwind 4
neutral-100
oklch(97% 0 none)
ExactΔE OK 0.000Tailwind 3
neutral-100
#F5F5F5
ExactΔE OK 0.000
About #F5F5F5
Tailwind 4 writes neutral-100 as oklch(97% 0 none), which converts back to the same #F5F5F5, so the color survives an upgrade.
It's a common fill for code blocks, table stripes, chat bubbles and input fields. That last one needs care. An input that only shows itself with this fill sits 1.09:1 from a white page, under the 3:1 WCAG 2.1 asks for the edges of a control. Add a border. In the shade scale below, #8A8A8A is the first step dark enough for that border, at 3.45:1 against white.
Black text scores 19.26:1. Gray text has a little less room than on pure white, so check a light gray before you use it. APCA, a newer method that isn't part of any WCAG standard, scores black text Lc 100.1.
Verdict
Use #F5F5F5 for quiet backgrounds: code blocks, sidebars, stripes, cards on white with a border, and hover states. Don't count on it alone to mark an edge on a white page, at 1.09:1.
For text on white in the same gray family, #727272 is the first step that passes AA, at 4.81:1. Click a shade to open it in the Color Picker.
More Color scenarios
Related guides
Frequently asked questions
What color is #F5F5F5?
Is #F5F5F5 a Tailwind color?
Is #F5F5F5 too light for an input field?
Related tools
Contrast Checker
Check color contrast ratios for WCAG AA/AAA accessibility compliance.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use toolAspect Ratio Visualizer
Visually compare width differences between 16:9, 21:9, and 32:9 monitors.
Use tool