Skip to content

#f2ecff

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

RGB
242, 236, 255
HSL
259°, 100%, 96%
CMYK
5, 8, 0, 0
Luminance
0.8609

Every format

HEX#f2ecff
RGBrgb(242, 236, 255)
HSLhsl(259, 100%, 96%)
CMYKcmyk(5%, 8%, 0%, 0%)
LABlab(94.3 5.4 -8.4)
LCHlch(94.3 10.0 302.8)
OKLCHoklch(0.953 0.026 300.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ecff on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#f2ecff on black: 18.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.5%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta7.5%
Yellow0.0%
Key (black)0.0%

Color previews

#f2ecff text on a black background

contrast 18.22:1

Card sample

#f2ecff text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ecff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ecff in the Color Lab