Skip to content

#f2eefc

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

RGB
242, 238, 252
HSL
257°, 70%, 96%
CMYK
4, 6, 0, 1
Luminance
0.8705

Every format

HEX#f2eefc
RGBrgb(242, 238, 252)
HSLhsl(257, 70%, 96%)
CMYKcmyk(4%, 6%, 0%, 1%)
LABlab(94.8 3.9 -6.3)
LCHlch(94.8 7.3 301.6)
OKLCHoklch(0.956 0.019 299.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2eefc on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#f2eefc on black: 18.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green93.3%
Blue98.8%

CMYK percentages

Cyan4.0%
Magenta5.6%
Yellow0.0%
Key (black)1.2%

Color previews

#f2eefc text on a black background

contrast 18.41:1

Card sample

#f2eefc text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2eefc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2eefc in the Color Lab