Skip to content

#f2ecfb

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

RGB
242, 236, 251
HSL
264°, 65%, 96%
CMYK
4, 6, 0, 2
Luminance
0.8583

Every format

HEX#f2ecfb
RGBrgb(242, 236, 251)
HSLhsl(264, 65%, 96%)
CMYKcmyk(4%, 6%, 0%, 2%)
LABlab(94.2 4.7 -6.5)
LCHlch(94.2 8.0 305.8)
OKLCHoklch(0.952 0.021 304.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ecfb on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f2ecfb on black: 18.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.5%
Blue98.4%

CMYK percentages

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

Color previews

#f2ecfb text on a black background

contrast 18.17:1

Card sample

#f2ecfb text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ecfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ecfb in the Color Lab