Skip to content

#f2eafb

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

RGB
242, 234, 251
HSL
268°, 68%, 95%
CMYK
4, 7, 0, 2
Luminance
0.8469

Every format

HEX#f2eafb
RGBrgb(242, 234, 251)
HSLhsl(268, 68%, 95%)
CMYKcmyk(4%, 7%, 0%, 2%)
LABlab(93.8 5.7 -7.2)
LCHlch(93.8 9.2 308.3)
OKLCHoklch(0.948 0.024 307.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green91.8%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta6.8%
Yellow0.0%
Key (black)1.6%

Color previews

#f2eafb text on a black background

contrast 17.94:1

Card sample

#f2eafb text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2eafb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2eafb in the Color Lab