Skip to content

#f8f2fb

a pale, vivid violet · warm · closest name: white

RGB
248, 242, 251
HSL
280°, 53%, 97%
CMYK
1, 4, 0, 2
Luminance
0.9043

Every format

HEX#f8f2fb
RGBrgb(248, 242, 251)
HSLhsl(280, 53%, 97%)
CMYKcmyk(1%, 4%, 0%, 2%)
LABlab(96.2 3.6 -3.6)
LCHlch(96.2 5.1 314.8)
OKLCHoklch(0.968 0.013 314.8)

Copy-ready code

/* CSS */
color: #f8f2fb;
background-color: #f8f2fb;
/* Tailwind (arbitrary) */
class="text-[#f8f2fb] bg-[#f8f2fb]"
/* SCSS */
$brand: #f8f2fb;
/* SwiftUI */
Color(red: 0.973, green: 0.949, blue: 0.984)
/* Android */
Color.parseColor("#f8f2fb")

Accessibility — WCAG contrast

Aa
#f8f2fb on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#f8f2fb on black: 19.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.3%
Green94.9%
Blue98.4%

CMYK percentages

Cyan1.2%
Magenta3.6%
Yellow0.0%
Key (black)1.6%

Color previews

#f8f2fb text on a black background

contrast 19.09:1

Card sample

#f8f2fb text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f8f2fb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8f2fb in the Color Lab