Skip to content

#ecaffc

a light, electric violet · warm · closest name: plum

RGB
236, 175, 252
HSL
288°, 93%, 84%
CMYK
6, 31, 0, 1
Luminance
0.5552

Every format

HEX#ecaffc
RGBrgb(236, 175, 252)
HSLhsl(288, 93%, 84%)
CMYKcmyk(6%, 31%, 0%, 1%)
LABlab(79.3 35.1 -29.5)
LCHlch(79.3 45.9 319.9)
OKLCHoklch(0.836 0.123 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecaffc on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#ecaffc on black: 12.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green68.6%
Blue98.8%

CMYK percentages

Cyan6.3%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#ecaffc text on a black background

contrast 12.10:1

Card sample

#ecaffc text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecaffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecaffc in the Color Lab