Black text passes AA19.77:1

#F8F8F8

#F8F8F8 is an off-white just shy of pure white, a near-white background for pages and code blocks; its nearest named color is White Smoke (#F5F5F5).

Many sites put it behind content to cut glare while still looking white.

#F8F8F8 color codes

HEX#F8F8F8
RGBrgb(248, 248, 248)
HSLhsl(0, 0%, 97%)
OKLCHoklch(97.9% 0 0)
CMYKcmyk(0%, 0%, 0%, 3%)
CMYK is an approximate screen conversion, not for print matching.

Shades of #F8F8F8

Six lighter and six darker versions, with #F8F8F8 in the middle. Click one to copy it.

Colors that go with #F8F8F8

  • Complementary
  • Analogous
  • Triadic
  • Split-complementary

Explore more schemes in the color wheel, or build an accessible palette from #F8F8F8.

Readability

White text on #F8F8F81.06:1, fails WCAG AA
Black text on #F8F8F819.77:1, passes WCAG AA

Test it with your own text color in the contrast checker.

Similar named colors

Questions about #F8F8F8

What color is #F8F8F8?

#F8F8F8 is an off-white just shy of pure white, a near-white background for pages and code blocks. Its nearest named color is White Smoke (#F5F5F5).

What is #F8F8F8 in RGB?

#F8F8F8 is rgb(248, 248, 248): 248 red, 248 green and 248 blue on a 0-255 scale. In HSL it's hsl(0, 0%, 97%).

What colors go with #F8F8F8?

Its complementary color is #F8F8F8. For a calmer look, try the analogous colors #F8F8F8 and #F8F8F8.

Is text readable on #F8F8F8?

Black text is the better choice, at 19.77:1, which passes WCAG AA.