Skip to content

#ecafe2

a light, vivid magenta / pink · warm · closest name: plum

RGB
236, 175, 226
HSL
310°, 62%, 81%
CMYK
0, 26, 4, 8
Luminance
0.5398

Every format

HEX#ecafe2
RGBrgb(236, 175, 226)
HSLhsl(310, 62%, 81%)
CMYKcmyk(0%, 26%, 4%, 8%)
LABlab(78.5 30.3 -16.9)
LCHlch(78.5 34.7 330.9)
OKLCHoklch(0.826 0.097 332.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecafe2 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#ecafe2 on black: 11.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green68.6%
Blue88.6%

CMYK percentages

Cyan0.0%
Magenta25.8%
Yellow4.2%
Key (black)7.5%

Color previews

#ecafe2 text on a black background

contrast 11.80:1

Card sample

#ecafe2 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecafe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecafe2 in the Color Lab