#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.

#F5F5F5

Color Codes

  • HEX#F5F5F5
  • RGBrgb(245, 245, 245)
  • HSLhsl(0, 0%, 96%)
  • OKLCHoklch(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
Check White Text in Contrast Checker

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
Check Black Text in Contrast Checker

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.

  1. Base#F5F5F5
  2. #D9D9D9
  3. #BEBEBE
  4. #A4A4A4
  5. #8A8A8A
  6. #727272
  7. #5A5A5A
  8. #434343
  9. #2E2E2E

Nearest Named Colors

  • CSS Name

    whitesmoke

    #F5F5F5

    ExactΔE OK 0.000
  • Tailwind 4

    neutral-100

    oklch(97% 0 none)

    ExactΔE OK 0.000
  • Tailwind 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

Hex to RGB
A hex color code is three RGB numbers written in base 16.
View details
RGB vs CMYK
Screens add light and print adds ink. See one color in both, and why a plain CMYK formula can't promise a print match.
View details
HSL color model
Hue, saturation and lightness, with three live sliders and a table of common colors in hex, RGB and HSL.
View details

Frequently asked questions

What color is #F5F5F5?
A neutral off white: rgb(245, 245, 245), hsl(0, 0%, 96%) or oklch(97.02% 0 0). CSS calls it whitesmoke.
Is #F5F5F5 a Tailwind color?
Yes, it's neutral-100 in Tailwind 3 and Tailwind 4. Version 4 writes it as oklch(97% 0 none), which converts back to #F5F5F5.
Is #F5F5F5 too light for an input field?
On a white page, yes, if the fill is the only thing that shows the field. It sits 1.09:1 from white, under WCAG 2.1's 3:1 for control edges. Add a border of #8A8A8A or darker, at 3.45:1.