Skip to content

#f5f2f8

a pale, soft violet · cool · closest name: Ghost White

RGB
245, 242, 248
HSL
270°, 30%, 96%
CMYK
1, 2, 0, 3
Luminance
0.8969

At a glance

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

Hex
#f5f2f8
Hue
270°
violet
Saturation
30%
soft
Lightness
96%
pale
Brightness
97%
HSV value
Perceived
96%
weighted brightness
Luminance
0.8969
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
18.94:1
Closest name
Ghost White
ΔE2000 1.8
Where it sits
Hue270° of 360°
Saturation30%
Lightness96%
Temperature
Warm ← → Cool64% 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#f5f2f8
RGBrgb(245, 242, 248)
HSLhsl(270, 30%, 96%)
CMYKcmyk(1%, 2%, 0%, 3%)
LABlab(95.9 2.1 -2.5)
LCHlch(95.9 3.3 309.2)
OKLCHoklch(0.965 0.009 308.4)
Decimal16118520
Display P3color(display-p3 0.961 0.949 0.973)

Copy-ready code

/* CSS */
color: #f5f2f8;
background-color: #f5f2f8;
/* Tailwind (arbitrary) */
class="text-[#f5f2f8] bg-[#f5f2f8]"
/* SCSS */
$brand: #f5f2f8;
/* SwiftUI */
Color(red: 0.961, green: 0.949, blue: 0.973)
/* Android */
Color.parseColor("#f5f2f8")
/* Flutter */
Color(0xFFF5F2F8)
/* Python / OpenCV (BGR) */
(248, 242, 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 #f5f2f8 · 18.94:1
Use #000000AAA at every size.
Aa
White text · 1.11:1
AA fail · AA large fail · AAA fail
Aa
Black text · 18.94:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f5f2f8 as text scores 1.11:1 on white and 18.94:1 on black.

Accessibility — WCAG contrast

Aa
#f5f2f8 on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#f5f2f8 on black: 18.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F1F3F8
deuteranopia · #F2F3F8
tritanopia · #F5F3F4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f5f2f8 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.

#f5f2f8
#F0ECF3
#DED5E7
#C7B6D8
#AB92C4
#8F6DB0
#7A569F
#664785
#52396A
#3D2C4E
#261C31
Base = 50Lightest = 50 · #f5f2f8Darkest = 950 · #261C31
:root {
  --brand-50: #f5f2f8;
  --brand-100: #F0ECF3;
  --brand-200: #DED5E7;
  --brand-300: #C7B6D8;
  --brand-400: #AB92C4;
  --brand-500: #8F6DB0;
  --brand-600: #7A569F;
  --brand-700: #664785;
  --brand-800: #52396A;
  --brand-900: #3D2C4E;
  --brand-950: #261C31;
  --brand: #f5f2f8;
  --brand-ink: #000000;
}

Colors that work with #f5f2f8

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#F7F5FA
Tinted page background
Border#D6CAE2
Hairlines and dividers
Muted text#735095
Captions on the surface
Accent#7A8547
Second voice, not a rival
Dark variant#402D53
Hover, pressed, headers
Light variant#F2EEF6
Selected rows, tints
Dark surface#1C1424
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 #f5f2f8

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#F5F8F2
Analogous left#F2F2F8
Analogous right#F8F2F8
Split-complement 1#F8F8F2
Split-complement 2#F2F8F2
Triadic 1#F8F5F2
Triadic 2#F2F8F5
Tetradic#F8F2F2

RGB percentages

Red96.1%
Green94.9%
Blue97.3%

CMYK percentages

Cyan1.2%
Magenta2.4%
Yellow0.0%
Key (black)2.7%

Color previews

#f5f2f8 text on a black background

contrast 18.94:1

Card sample

#f5f2f8 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5f2f8

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.

#f5f2f8 in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#f5f2f8, answered

What color is #f5f2f8?

#f5f2f8 is a pale soft violet, closest to Ghost White (ΔE2000 1.8). It sits at 270° on the hue wheel with 30% saturation and 96% lightness, which reads as cool.

What is the RGB value of #f5f2f8?

rgb(245, 242, 248) — 245 red, 242 green and 248 blue out of 255, or 96.1% / 94.9% / 97.3% by channel.

Is #f5f2f8 a light or a dark color?

It is a light color. Relative luminance is 0.8969 and perceived brightness is 96%, so black text on it reaches 18.94:1.

Should I use black or white text on #f5f2f8?

Black. It scores 18.94:1 against #f5f2f8, versus 1.11:1 for white — AAA at any size.

What is the complementary color of #f5f2f8?

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

What colors go well with #f5f2f8?

For interface work: #F7F5FA as the surface, #D6CAE2 for borders, #735095 for secondary text, #7A8547 as an accent and #402D53 for hover and pressed states. For a palette, the analogous pair #F2F2F8 and #F8F2F8 stays calm, while #F5F8F2 is the loudest partner.

What is #f5f2f8 in CMYK for printing?

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

Is #f5f2f8 warm or cool?

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

Work with #f5f2f8 in the Color Lab