Skip to content

#f2dcfe

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

RGB
242, 220, 254
HSL
279°, 94%, 93%
CMYK
5, 13, 0, 0
Luminance
0.7722

Every format

HEX#f2dcfe
RGBrgb(242, 220, 254)
HSLhsl(279, 94%, 93%)
CMYKcmyk(5%, 13%, 0%, 0%)
LABlab(90.4 13.6 -13.8)
LCHlch(90.4 19.3 314.6)
OKLCHoklch(0.923 0.051 313.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dcfe on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f2dcfe on black: 16.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green86.3%
Blue99.6%

CMYK percentages

Cyan4.7%
Magenta13.4%
Yellow0.0%
Key (black)0.4%

Color previews

#f2dcfe text on a black background

contrast 16.44:1

Card sample

#f2dcfe text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dcfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dcfe in the Color Lab