Skip to content

#ecccf7

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

RGB
236, 204, 247
HSL
285°, 73%, 88%
CMYK
5, 17, 0, 3
Luminance
0.6773

Every format

HEX#ecccf7
RGBrgb(236, 204, 247)
HSLhsl(285, 73%, 88%)
CMYKcmyk(5%, 17%, 0%, 3%)
LABlab(85.9 18.7 -16.9)
LCHlch(85.9 25.3 317.9)
OKLCHoklch(0.885 0.067 317.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecccf7 on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#ecccf7 on black: 14.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.0%
Blue96.9%

CMYK percentages

Cyan4.5%
Magenta17.4%
Yellow0.0%
Key (black)3.1%

Color previews

#ecccf7 text on a black background

contrast 14.55:1

Card sample

#ecccf7 text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecccf7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecccf7 in the Color Lab