#EC97F2#EC97F2
#EC97F2 is a light, vivid purple. Relative luminance 0.464; OKLCH L 79.3% C 0.154 H 324.6°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).
Color values
| HEX | #EC97F2 |
|---|---|
| RGB | rgb(236, 151, 242) |
| HSL | hsl(296, 78%, 77%) |
| HSV | hsv(296, 38%, 95%) |
| CMYK | cmyk(2.5%, 37.6%, 0%, 5.1%) |
| CIE-LAB | lab(73.79, 45.86, -32.67) |
| CIE-LCH | lch(73.79, 56.31, 324.54°) |
| OKLab | oklab(79.26% 0.1254 -0.0892) |
| OKLCH | oklch(79.26% 0.154 324.6) |
| XYZ | xyz(61.6841, 46.3793, 89.6900) |
| Luminance | 0.4638 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.41
Lavender Pink
#DD85D7
ΔE00 5.41
Plum
#DDA0DD
ΔE00 5.47
Purply Pink
#F075E6
ΔE00 6.89
Mauve
#E0B0FF
ΔE00 7.00
Baby Purple
#CA9BF7
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#EC97F2 #9DF297
analogous
#BF97F2 #EC97F2 #F297CB
triadic
#EC97F2 #F2EC97 #97F2EC
tetradic
#EC97F2 #F2BF97 #9DF297 #97CBF2
square
#EC97F2 #F2BF97 #9DF297 #97CBF2
split-complementary
#EC97F2 #CBF297 #97F2BF
monochromatic
#D82AE4 #E261EB #EC97F2 #F6CDF9 #FAE4FC
Accessibility & contrast
On white
2.04
#EC97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.28
#EC97F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #EC97F2
10.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##EC97F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##EC97F2 | 1.00 | 2.04 | 10.28 | 10.28 |
| #FFFFFF | 2.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8EAFF5
Deuteranopia (green-blind)
#A4B9EF
Tritanopia (blue-blind)
#F0A0B9
Achromatopsia (no color)
#B5B5B5
Design tokens & code
CSS
--color: #ec97f2; /* rgb */ color: rgb(236, 151, 242); /* oklch */ color: oklch(79.3% 0.154 324.6);
Tailwind
colors: {
custom: {
50: '#f3b7f6',
500: '#ec97f2',
950: '#000000',
},
}SCSS
$custom: #ec97f2; $custom-light: #f3b7f6; $custom-dark: #000000;
JSON
{
"hex": "#ec97f2",
"rgb": {
"r": 236,
"g": 151,
"b": 242
},
"hsl": {
"h": 296.044,
"s": 77.778,
"l": 77.059
},
"oklch": {
"l": 0.79255,
"c": 0.15388,
"h": 324.6
},
"luminance": 0.46377
}Semantic roles & 50–950 ramp
primary
#EC97F2
secondary
#D9F3D8
accent
#DA0B19
background
#FFFBFF
surface
#FEF6FE
border
#D6D0D6
text
#171117
muted
#858085