#EC87F0#EC87F0
#EC87F0 is a light, vivid purple. Relative luminance 0.415; OKLCH L 76.8% C 0.179 H 325.8°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #EC87F0 |
|---|---|
| RGB | rgb(236, 135, 240) |
| HSL | hsl(298, 78%, 74%) |
| HSV | hsv(298, 44%, 94%) |
| CMYK | cmyk(1.7%, 43.8%, 0%, 5.9%) |
| CIE-LAB | lab(70.49, 53.66, -36.69) |
| CIE-LCH | lch(70.49, 65.00, 325.64°) |
| OKLab | oklab(76.76% 0.1477 -0.1005) |
| OKLCH | oklch(76.76% 0.179 325.8) |
| XYZ | xyz(58.9829, 41.4549, 87.3159) |
| Luminance | 0.4145 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 1.06
Purply Pink
#F075E6
ΔE00 3.67
Lavender Pink
#DD85D7
ΔE00 4.25
Orchid
#DA70D6
ΔE00 6.33
Candy Pink
#FF63E9
ΔE00 6.36
Light Magenta
#FA5FF7
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#EC87F0 #8BF087
analogous
#B787F0 #EC87F0 #F087BF
triadic
#EC87F0 #F0EC87 #87F0EC
tetradic
#EC87F0 #F0B787 #8BF087 #87BFF0
square
#EC87F0 #F0B787 #8BF087 #87BFF0
split-complementary
#EC87F0 #BFF087 #87F0B7
monochromatic
#D91CE1 #E351E9 #EC87F0 #F5BDF7 #FBE4FC
Accessibility & contrast
On white
2.26
#EC87F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.29
#EC87F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #EC87F0
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##EC87F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##EC87F0 | 1.00 | 2.26 | 9.29 | 9.29 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7DA4F4
Deuteranopia (green-blind)
#99B1ED
Tritanopia (blue-blind)
#F192B0
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #ec87f0; /* rgb */ color: rgb(236, 135, 240); /* oklch */ color: oklch(76.8% 0.179 325.8);
Tailwind
colors: {
custom: {
50: '#f4adf5',
500: '#ec87f0',
950: '#000000',
},
}SCSS
$custom: #ec87f0; $custom-light: #f4adf5; $custom-dark: #000000;
JSON
{
"hex": "#ec87f0",
"rgb": {
"r": 236,
"g": 135,
"b": 240
},
"hsl": {
"h": 297.714,
"s": 77.778,
"l": 73.529
},
"oklch": {
"l": 0.76759,
"c": 0.17864,
"h": 325.8
},
"luminance": 0.41452
}Semantic roles & 50–950 ramp
primary
#EC87F0
secondary
#D9F3D8
accent
#DA0B13
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#171017
muted
#857F85