Palette maker

#F8F8F8 Color: Near White Hex Code, RGB and Palettes

is a near white neutral gray with the RGB value 248, 248, 248. It sits just below pure white, which makes it one of the most useful background colors for web pages, apps and printed pieces.

On this page
  1. Color codes
  2. What F8F8F8 looks like, and why it has so many names
  3. Close colors
  4. Web and UI
  5. Contrast
  6. CSS
  7. F8F8F8 in branding and interface systems
  8. Interiors, fashion and art in F8F8F8
  9. Printing
  10. Palettes
  11. FAQ

The palette maker above builds matching palettes from this code with copyable HEX, RGB and HSL values. Below you will find the exact conversions, how differs from its neighbors, contrast ratios I calculated, and practical notes for screen, print and interiors.

F8F8F8 color codes: HEX, RGB, HSL and CMYK

Because all three channels are identical, is a pure neutral. There is no hue to describe, which is why HSL shows 0 for both hue and saturation and only lightness (97%) carries information. The figures below are computed directly from the hex code.

Format Value
HEX
RGB rgb(248, 248, 248)
HSL hsl(0, 0%, 97%)
HSB / HSV 0°, 0%, 97%
CMYK (simple conversion) 0%, 0%, 0%, 3%
OKLCH oklch(98% 0 0)
Decimal 16316664
Simple inverse

The CMYK line is the standard mathematical conversion. A real press or printer profile will give slightly different numbers, so treat it as a starting point and check a proof. Other tools agree on the HSL reading of 0° hue, 0% saturation and 97% lightness.

What F8F8F8 looks like, and why it has so many names

On a bright screen reads as white with the edge taken off. Alone on a page you may not notice it is gray at all. Next to it suddenly looks like a faint, cool shadow, and that contrast effect is exactly what designers use it for.

There is no official name for this code. Color tools label it differently: Alabaster, Cultured, Desert Storm and Guyabano all appear, each pointing to the nearest entry in that tool’s own name list. Treat these as nicknames, not standards.

One naming trap is worth knowing. The CSS keyword whitesmoke is , not , and the keyword ghostwhite is , which carries a blue tint. If you type a keyword in code you will not get this exact gray, so use the hex value itself.

F8F8F8 next to white and its closest grays

The steps between near whites are tiny, but they behave differently once they sit beside other colors. Here is how the closest neighbors compare:

  • is pure white. The contrast against is only about 1.06:1, so a white card on a page needs a hairline border or soft shadow to be seen.
  • is lighter and gentler, good when you want the page to feel almost white.
  • is darker and gives panels and sidebars a firmer edge. See the full breakdown of #F4F4F4 if you need a slightly deeper surface.
  • , a favorite in some CSS frameworks, has the same lightness but a faint cool tint.

If your page has a blue or green brand color, a neutral gray like will look a little warm beside the cooler tint of , and slightly cool beside warm creams. Hold the swatches next to each other before committing, because the eye reads near whites relative to their surroundings.

Using F8F8F8 as a website and app background

A page background of with white cards is a classic layering system. The page recedes, the cards lift, and you get depth without heavy shadows. It also reduces the glare some people feel from a full white screen, while keeping text crisp.

I used this exact setup on a client’s reporting dashboard. Their old all-white layout made dense tables blur together. Switching the page to , keeping table rows white and adding a one pixel border fixed the problem without adding a single new hue.

It works for long reading too. Body text in a dark gray such as #333333 on feels softer than black on white, and it is still far above accessibility thresholds. For a gentle brand feel, try a very pale gradient from into a pastel, as in this light blue gradient guide.

Contrast and WCAG: what reads well on F8F8F8

I calculated the relative luminance of as about 0.939 using the WCAG formula. From that, these are the contrast ratios for common text colors on a background:

  • Black : about 19.8:1
  • #1A1A1A: about 16.4:1
  • #333333: about 11.9:1
  • #4A4A4A: about 8.3:1
  • : about 4.3:1, which misses the 4.5:1 AA target for normal text

That last line catches people out. is the well-known lightest gray that just passes on pure white, at about 4.5:1. On it slips under the line. Whenever you move text from a white background to a near white one, recheck the grays you use for captions, placeholders and disabled states.

Which text color passes the 4.5:1 WCAG AA ratio on a #F8F8F8 background?

#4A4A4A gives about 8.3:1, while #767676 lands near 4.3:1 on this background and #999999 is lower still.

The other direction is simple. Using as text on dark backgrounds gives the same ratios as listed above, so it passes comfortably on or . Never use it as text on white, where the ratio is roughly 1.06:1 and the words effectively disappear.

Ladder of seven gray text colors on #F8F8F8 with contrast bars, showing #767676 failing the 4.5:1 line
Gray text down to #6B6B6B passes AA on #F8F8F8, but #767676 drops to 4.3:1.

CSS for F8F8F8, including a dark mode flip

Define the color once as a variable and reuse it, so a future tweak is a one line change. Here is a small system with a dark mode swap:

What is the simple RGB inverse of #F8F8F8, handy as a starting point for a dark surface?

Each channel becomes 255 minus 248, which is 7, so the inverse is #070707.

:root {
  --surface: #F8F8F8;
  --card: #FFFFFF;
  --ink: #333333;
  --line: #E5E5E5;
}

body { background: var(--surface); color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); }

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1A1A1A;
    --card: #242424;
    --ink: #F8F8F8;
    --line: #333333;
  }
}
Why not just invert?

The simple inverse of is , which is almost black and often too harsh for a dark surface. Lifting it to something like keeps depth and avoids a heavy look.

In modern CSS you can also write the color as rgb(248 248 248) or oklch(98% 0 0). All three forms render the same gray in current browsers, so choose whichever matches the rest of your stylesheet.

F8F8F8 in branding and interface systems

Near whites are rarely a brand color on their own, but they carry a brand’s personality. A cool neutral makes a deep navy such as #586288 feel crisp and professional. Beside warm terracotta or clay, the same gray reads as a clean gallery wall. The accent decides the mood, and simply gives it room.

In a design system I would usually assign a role, not just a swatch: page background, subtle section fill, or table header. Naming it by role (surface, canvas) keeps the team from using it as a border or text color by accident.

Logos need a little care. A white logo on will look faint, and a pale gray logo will vanish. If your logo has a white version, always supply a dark one for near white backgrounds, and test both at small sizes.

Interiors, fashion and art in F8F8F8

For walls and trim, behaves like a crisp, neutral off white. The code is a digital swatch, though, and real paint adds undertones that screens do not show. One paint reference estimates the light reflectance value at roughly 93.9%, and notes that it comes from the digital swatch and is not a manufacturer measurement. Always test a physical sample on the wall in your own light.

In fashion, a look suggests off white, the shade between optical white and ivory. It photographs cleaner than cream and flatters cool metals, black, and muted tones such as muted blue or muted green. Fabric texture matters: linen and cotton will pick up warmer or cooler casts depending on the dye and lighting.

For art, a near white gives painters and illustrators a canvas that is less harsh than paper white. In digital illustration, a background helps pure white highlights stand out, which a background cannot do.

Try this: Create three equal squares in your design tool filled with , and . Place a white card on each, with no border, then add a 1px border. Note which version looks best to you, and use that as your surface color.

Printing F8F8F8: CMYK, paper and surprises

In print, translates to a very light 3% black tint. That is subtle on coated stock and sometimes invisible on uncoated stock, where dot gain and the paper’s own tone take over. On a brochure proof, I once specified a 3% gray background that disappeared on the uncoated stock, so we dropped the tint and let the paper itself do the work.

If you need a visible tint, aim a step or two darker, for example around 5% black or . If you only want a clean white feel, leave the area unprinted and choose a bright paper stock, which is cheaper and more consistent than a faint ink screen.

Text on printed near white should be dark and rich. A soft black such as #231F20 is a common choice for print because it avoids the flat look of pure black ink. Whatever you choose, order a proof, because screen white and paper white never match exactly.

Palettes and pairings built around F8F8F8

Near white works best as the quiet foundation of a palette, with one or two colors doing the talking. The four palettes below keep as the base and vary the mood: strictly neutral, calm and corporate, soft and natural, or warm and earthy.

Studio Paper

Editorial sites, portfolios and documentation with a strict neutral scale.

Palette strip of five swatches with roles and hex codes, built around the near white background #F8F8F8
Give #F8F8F8 the background role and let navy and terracotta carry the brand.
Quiet Dashboard

Admin panels and SaaS screens that need calm surfaces and one confident accent.

Sage Linen

Wellness brands, packaging and interiors that want a soft natural mood.

Clay Gallery

Warm gallery walls, ceramics shops and print menus with a terracotta accent.

As a rule of thumb, let cover 60% or more of the layout, use a mid tone for structure, and keep a single saturated color for calls to action. For a bolder look, try neutral surfaces with a strong purple or green, as in this purple gradient guide, then check every text color against the contrast ratios above.

Colors close to this code

#F8F8F8 Color: questions people ask

What color is #F8F8F8?

#F8F8F8 is a near white, neutral light gray. Its RGB value is 248, 248, 248, so red, green and blue are equal and the color has no hue or saturation.

What is the RGB value of #F8F8F8?

It is rgb(248, 248, 248), or about 97.3% on each channel. In HSL it is hsl(0, 0%, 97%), and in CMYK it is roughly 0, 0, 0, 3.

Is #F8F8F8 the same as white smoke?

Not in CSS. The named color whitesmoke is #F5F5F5, which is three steps darker per channel. Some color tools label #F8F8F8 as white smoke, alabaster or cultured, but none of those is an official name for this code.

Is #F8F8F8 a good background color?

Yes. It softens the glare of pure white while keeping text contrast very high, about 19.8:1 with black. Add a border or shadow to white cards placed on it, because the two differ only slightly.

What is the difference between #F8F8F8 and #FFFFFF?

#FFFFFF is the brightest possible white, while #F8F8F8 is seven steps lower on each channel. The contrast ratio between them is only about 1.06:1, so the difference is subtle but visible side by side.

Keep exploring