Skip to content

#f2eafd

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

RGB
242, 234, 253
HSL
265°, 83%, 96%
CMYK
4, 8, 0, 1
Luminance
0.8481

Every format

HEX#f2eafd
RGBrgb(242, 234, 253)
HSLhsl(265, 83%, 96%)
CMYKcmyk(4%, 8%, 0%, 1%)
LABlab(93.8 6.1 -8.2)
LCHlch(93.8 10.2 306.6)
OKLCHoklch(0.949 0.027 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2eafd on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#f2eafd on black: 17.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green91.8%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta7.5%
Yellow0.0%
Key (black)0.8%

Color previews

#f2eafd text on a black background

contrast 17.96:1

Card sample

#f2eafd text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2eafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2eafd in the Color Lab