Skip to content

#f5f7fc

a pale, vivid blue · cool · closest name: Ghost White

RGB
245, 247, 252
HSL
223°, 54%, 98%
CMYK
3, 2, 0, 1
Luminance
0.9296

At a glance

Every number on this page in one read: what #f5f7fc is made of, how bright it looks, and which way it leans.

Hex
#f5f7fc
Hue
223°
blue
Saturation
54%
vivid
Lightness
98%
pale
Brightness
99%
HSV value
Perceived
97%
weighted brightness
Luminance
0.9296
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
19.59:1
Closest name
Ghost White
ΔE2000 1.6
Where it sits
Hue223° of 360°
Saturation54%
Lightness98%
Temperature
Warm ← → Cool93% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#f5f7fc
RGBrgb(245, 247, 252)
HSLhsl(223, 54%, 98%)
CMYKcmyk(3%, 2%, 0%, 1%)
LABlab(97.2 0.2 -2.6)
LCHlch(97.2 2.6 275.0)
OKLCHoklch(0.976 0.007 268.5)
Decimal16119804
Display P3color(display-p3 0.961 0.969 0.988)

Copy-ready code

/* CSS */
color: #f5f7fc;
background-color: #f5f7fc;
/* Tailwind (arbitrary) */
class="text-[#f5f7fc] bg-[#f5f7fc]"
/* SCSS */
$brand: #f5f7fc;
/* SwiftUI */
Color(red: 0.961, green: 0.969, blue: 0.988)
/* Android */
Color.parseColor("#f5f7fc")
/* Flutter */
Color(0xFFF5F7FC)
/* Python / OpenCV (BGR) */
(252, 247, 245)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #f5f7fc · 19.59:1
Use #000000AAA at every size.
Aa
White text · 1.07:1
AA fail · AA large fail · AAA fail
Aa
Black text · 19.59:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f5f7fc as text scores 1.07:1 on white and 19.59:1 on black.

Accessibility — WCAG contrast

Aa
#f5f7fc on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#f5f7fc on black: 19.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F6F7FC
deuteranopia · #F5F7FC
tritanopia · #F4F8F9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f5f7fc is pinned to step 50; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#f5f7fc
#E9EDF6
#CED7EE
#A9BAE5
#7E97D8
#5275CB
#395EBC
#2F4E9D
#263F7E
#1F305B
#131E39
Base = 50Lightest = 50 · #f5f7fcDarkest = 950 · #131E39
:root {
  --brand-50: #f5f7fc;
  --brand-100: #E9EDF6;
  --brand-200: #CED7EE;
  --brand-300: #A9BAE5;
  --brand-400: #7E97D8;
  --brand-500: #5275CB;
  --brand-600: #395EBC;
  --brand-700: #2F4E9D;
  --brand-800: #263F7E;
  --brand-900: #1F305B;
  --brand-950: #131E39;
  --brand: #f5f7fc;
  --brand-ink: #000000;
}

Colors that work with #f5f7fc

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F6FA
Tinted page background
Border#C0CDEC
Hairlines and dividers
Muted text#4B619B
Captions on the surface
Accent#9D5E2F
Second voice, not a rival
Dark variant#1D3162
Hover, pressed, headers
Light variant#EBEFF9
Selected rows, tints
Dark surface#141824
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #f5f7fc

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#FCFAF5
Analogous left#F5FBFC
Analogous right#F7F5FC
Split-complement 1#FCF7F5
Split-complement 2#FBFCF5
Triadic 1#FCF5F7
Triadic 2#F7FCF5
Tetradic#FCF5FB

RGB percentages

Red96.1%
Green96.9%
Blue98.8%

CMYK percentages

Cyan2.8%
Magenta2.0%
Yellow0.0%
Key (black)1.2%

Color previews

#f5f7fc text on a black background

contrast 19.59:1

Card sample

#f5f7fc text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f5f7fc;
Background color
Panel with #f5f7fc background
background-color: #f5f7fc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f5f7fc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(245, 247, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(245, 247, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f5f7fc;
background: linear-gradient(135deg, #f5f7fc, #F8F5FC);

Monochromatic scale

Palettes built from #f5f7fc

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#f5f7fc in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Very light tints can drop out on uncoated stock; check it at 100% size before signing off.

#f5f7fc, answered

What color is #f5f7fc?

#f5f7fc is a pale vivid blue, closest to Ghost White (ΔE2000 1.6). It sits at 223° on the hue wheel with 54% saturation and 98% lightness, which reads as cool.

What is the RGB value of #f5f7fc?

rgb(245, 247, 252) — 245 red, 247 green and 252 blue out of 255, or 96.1% / 96.9% / 98.8% by channel.

Is #f5f7fc a light or a dark color?

It is a light color. Relative luminance is 0.9296 and perceived brightness is 97%, so black text on it reaches 19.59:1.

Should I use black or white text on #f5f7fc?

Black. It scores 19.59:1 against #f5f7fc, versus 1.07:1 for white — AAA at any size.

What is the complementary color of #f5f7fc?

#FCFAF5 sits directly opposite on the wheel. Softer options are the split-complements #FCF7F5 and #FBFCF5, which give the same contrast with far less vibration.

What colors go well with #f5f7fc?

For interface work: #F4F6FA as the surface, #C0CDEC for borders, #4B619B for secondary text, #9D5E2F as an accent and #1D3162 for hover and pressed states. For a palette, the analogous pair #F5FBFC and #F7F5FC stays calm, while #FCFAF5 is the loudest partner.

What is #f5f7fc in CMYK for printing?

cmyk(3%, 2%, 0%, 1%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #f5f7fc warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F4F3FB; nudged cooler, #F3F7FC.

Work with #f5f7fc in the Color Lab