Skip to content

#f2dcfc

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

RGB
242, 220, 252
HSL
281°, 84%, 93%
CMYK
4, 13, 0, 1
Luminance
0.7709

Every format

HEX#f2dcfc
RGBrgb(242, 220, 252)
HSLhsl(281, 84%, 93%)
CMYKcmyk(4%, 13%, 0%, 1%)
LABlab(90.4 13.2 -12.8)
LCHlch(90.4 18.4 315.9)
OKLCHoklch(0.922 0.049 315.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green86.3%
Blue98.8%

CMYK percentages

Cyan4.0%
Magenta12.7%
Yellow0.0%
Key (black)1.2%

Color previews

#f2dcfc text on a black background

contrast 16.42:1

Card sample

#f2dcfc text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dcfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dcfc in the Color Lab