Skip to content

#ecccf2

a pale, vivid magenta / pink · warm · closest name: lavender

RGB
236, 204, 242
HSL
291°, 59%, 88%
CMYK
3, 16, 0, 5
Luminance
0.6743

Every format

HEX#ecccf2
RGBrgb(236, 204, 242)
HSLhsl(291, 59%, 88%)
CMYKcmyk(3%, 16%, 0%, 5%)
LABlab(85.7 17.8 -14.5)
LCHlch(85.7 22.9 320.8)
OKLCHoklch(0.884 0.062 320.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecccf2 on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#ecccf2 on black: 14.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.0%
Blue94.9%

CMYK percentages

Cyan2.5%
Magenta15.7%
Yellow0.0%
Key (black)5.1%

Color previews

#ecccf2 text on a black background

contrast 14.49:1

Card sample

#ecccf2 text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecccf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecccf2 in the Color Lab