Skip to content

#ecc2f8

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

RGB
236, 194, 248
HSL
287°, 79%, 87%
CMYK
5, 22, 0, 3
Luminance
0.6319

Every format

HEX#ecc2f8
RGBrgb(236, 194, 248)
HSLhsl(287, 79%, 87%)
CMYKcmyk(5%, 22%, 0%, 3%)
LABlab(83.5 24.2 -21.0)
LCHlch(83.5 32.0 319.1)
OKLCHoklch(0.868 0.086 318.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc2f8 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#ecc2f8 on black: 13.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green76.1%
Blue97.3%

CMYK percentages

Cyan4.8%
Magenta21.8%
Yellow0.0%
Key (black)2.7%

Color previews

#ecc2f8 text on a black background

contrast 13.64:1

Card sample

#ecc2f8 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc2f8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc2f8 in the Color Lab