#EC87F6#EC87F6
#EC87F6 is a light, vivid purple. Relative luminance 0.418; OKLCH L 77.0% C 0.184 H 323.8°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).
Color values
| HEX | #EC87F6 |
|---|---|
| RGB | rgb(236, 135, 246) |
| HSL | hsl(295, 86%, 75%) |
| HSV | hsv(295, 45%, 96%) |
| CMYK | cmyk(4.1%, 45.1%, 0%, 3.5%) |
| CIE-LAB | lab(70.74, 54.75, -39.58) |
| CIE-LCH | lch(70.74, 67.56, 324.14°) |
| OKLab | oklab(77.03% 0.1487 -0.1088) |
| OKLCH | oklch(77.03% 0.184 323.8) |
| XYZ | xyz(59.8890, 41.8173, 92.0878) |
| Luminance | 0.4182 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 1.68
Purply Pink
#F075E6
ΔE00 4.14
Lavender Pink
#DD85D7
ΔE00 5.15
Candy Pink
#FF63E9
ΔE00 6.62
Violet Pink
#FB5FFC
ΔE00 6.62
Light Magenta
#FA5FF7
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#EC87F6 #91F687
analogous
#B587F6 #EC87F6 #F687C8
triadic
#EC87F6 #F6EC87 #87F6EC
tetradic
#EC87F6 #F6B587 #91F687 #87C8F6
square
#EC87F6 #F6B587 #91F687 #87C8F6
split-complementary
#EC87F6 #C8F687 #87F6B5
monochromatic
#DA15ED #E34EF2 #EC87F6 #F5C0FA #FAE3FD
Accessibility & contrast
On white
2.24
#EC87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.36
#EC87F6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #EC87F6
9.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##EC87F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##EC87F6 | 1.00 | 2.24 | 9.36 | 9.36 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA5FA
Deuteranopia (green-blind)
#96B1F3
Tritanopia (blue-blind)
#F094B3
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #ec87f6; /* rgb */ color: rgb(236, 135, 246); /* oklch */ color: oklch(77.0% 0.184 323.8);
Tailwind
colors: {
custom: {
50: '#f4adf9',
500: '#ec87f6',
950: '#000000',
},
}SCSS
$custom: #ec87f6; $custom-light: #f4adf9; $custom-dark: #000000;
JSON
{
"hex": "#ec87f6",
"rgb": {
"r": 236,
"g": 135,
"b": 246
},
"hsl": {
"h": 294.595,
"s": 86.047,
"l": 74.706
},
"oklch": {
"l": 0.77029,
"c": 0.18426,
"h": 323.8
},
"luminance": 0.41815
}Semantic roles & 50–950 ramp
primary
#EC87F6
secondary
#D9F5D6
accent
#E30317
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#171017
muted
#857F85