Skip to content

#f5f2fe

a pale, electric violet · warm · closest name: lavender

RGB
245, 242, 254
HSL
255°, 86%, 97%
CMYK
4, 5, 0, 0
Luminance
0.9007

Every format

HEX#f5f2fe
RGBrgb(245, 242, 254)
HSLhsl(255, 86%, 97%)
CMYKcmyk(4%, 5%, 0%, 0%)
LABlab(96.0 3.1 -5.4)
LCHlch(96.0 6.3 300.2)
OKLCHoklch(0.967 0.016 297.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red96.1%
Green94.9%
Blue99.6%

CMYK percentages

Cyan3.5%
Magenta4.7%
Yellow0.0%
Key (black)0.4%

Color previews

#f5f2fe text on a black background

contrast 19.01:1

Card sample

#f5f2fe text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5f2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f5f2fe in the Color Lab