Skip to content

#ecccf6

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

RGB
236, 204, 246
HSL
286°, 70%, 88%
CMYK
4, 17, 0, 4
Luminance
0.6767

Every format

HEX#ecccf6
RGBrgb(236, 204, 246)
HSLhsl(286, 70%, 88%)
CMYKcmyk(4%, 17%, 0%, 4%)
LABlab(85.8 18.5 -16.4)
LCHlch(85.8 24.8 318.4)
OKLCHoklch(0.885 0.066 318.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan4.1%
Magenta17.1%
Yellow0.0%
Key (black)3.5%

Color previews

#ecccf6 text on a black background

contrast 14.53:1

Card sample

#ecccf6 text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecccf6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecccf6 in the Color Lab