Skip to content

#ecccf5

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

RGB
236, 204, 245
HSL
287°, 67%, 88%
CMYK
4, 17, 0, 4
Luminance
0.6761

Every format

HEX#ecccf5
RGBrgb(236, 204, 245)
HSLhsl(287, 67%, 88%)
CMYKcmyk(4%, 17%, 0%, 4%)
LABlab(85.8 18.3 -16.0)
LCHlch(85.8 24.3 319.0)
OKLCHoklch(0.885 0.065 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green80.0%
Blue96.1%

CMYK percentages

Cyan3.7%
Magenta16.7%
Yellow0.0%
Key (black)3.9%

Color previews

#ecccf5 text on a black background

contrast 14.52:1

Card sample

#ecccf5 text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecccf5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecccf5 in the Color Lab