#EC87F2#EC87F2
#EC87F2 is a light, vivid purple. Relative luminance 0.416; OKLCH L 76.8% C 0.180 H 325.1°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #EC87F2 |
|---|---|
| RGB | rgb(236, 135, 242) |
| HSL | hsl(297, 80%, 74%) |
| HSV | hsv(297, 44%, 95%) |
| CMYK | cmyk(2.5%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(70.58, 54.02, -37.65) |
| CIE-LCH | lch(70.58, 65.85, 325.13°) |
| OKLab | oklab(76.85% 0.148 -0.1033) |
| OKLCH | oklch(76.85% 0.181 325.1) |
| XYZ | xyz(59.2817, 41.5744, 88.8892) |
| Luminance | 0.4157 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 1.20
Purply Pink
#F075E6
ΔE00 3.80
Lavender Pink
#DD85D7
ΔE00 4.55
Candy Pink
#FF63E9
ΔE00 6.43
Orchid
#DA70D6
ΔE00 6.46
Light Magenta
#FA5FF7
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#EC87F2 #8DF287
analogous
#B787F2 #EC87F2 #F287C3
triadic
#EC87F2 #F2EC87 #87F2EC
tetradic
#EC87F2 #F2B787 #8DF287 #87C3F2
square
#EC87F2 #F2B787 #8DF287 #87C3F2
split-complementary
#EC87F2 #C3F287 #87F2B7
monochromatic
#DA19E6 #E350EC #EC87F2 #F5BEF8 #FBE3FC
Accessibility & contrast
On white
2.25
#EC87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.31
#EC87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #EC87F2
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##EC87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##EC87F2 | 1.00 | 2.25 | 9.31 | 9.31 |
| #FFFFFF | 2.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7CA5F6
Deuteranopia (green-blind)
#98B1EF
Tritanopia (blue-blind)
#F193B1
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #ec87f2; /* rgb */ color: rgb(236, 135, 242); /* oklch */ color: oklch(76.8% 0.180 325.1);
Tailwind
colors: {
custom: {
50: '#f4adf6',
500: '#ec87f2',
950: '#000000',
},
}SCSS
$custom: #ec87f2; $custom-light: #f4adf6; $custom-dark: #000000;
JSON
{
"hex": "#ec87f2",
"rgb": {
"r": 236,
"g": 135,
"b": 242
},
"hsl": {
"h": 296.636,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.76848,
"c": 0.1805,
"h": 325.1
},
"luminance": 0.41572
}Semantic roles & 50–950 ramp
primary
#EC87F2
secondary
#D9F4D7
accent
#DD0915
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#171017
muted
#857F85