Skip to content

#f2dcff

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

RGB
242, 220, 255
HSL
278°, 100%, 93%
CMYK
5, 14, 0, 0
Luminance
0.7728

Every format

HEX#f2dcff
RGBrgb(242, 220, 255)
HSLhsl(278, 100%, 93%)
CMYKcmyk(5%, 14%, 0%, 0%)
LABlab(90.5 13.8 -14.2)
LCHlch(90.5 19.8 314.0)
OKLCHoklch(0.923 0.052 313.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green86.3%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta13.7%
Yellow0.0%
Key (black)0.0%

Color previews

#f2dcff text on a black background

contrast 16.46:1

Card sample

#f2dcff text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dcff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dcff in the Color Lab