#EC8CFB#EC8CFB
#EC8CFB is a light, vivid purple. Relative luminance 0.436; OKLCH L 78.0% C 0.181 H 322.0°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #EC8CFB |
|---|---|
| RGB | rgb(236, 140, 251) |
| HSL | hsl(292, 93%, 77%) |
| HSV | hsv(292, 44%, 98%) |
| CMYK | cmyk(6%, 44.2%, 0%, 1.6%) |
| CIE-LAB | lab(71.93, 53.17, -40.45) |
| CIE-LCH | lch(71.93, 66.81, 322.73°) |
| OKLab | oklab(77.98% 0.1427 -0.1113) |
| OKLCH | oklch(77.98% 0.181 322) |
| XYZ | xyz(61.3808, 43.5565, 96.4221) |
| Luminance | 0.4355 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 2.82
Purply Pink
#F075E6
ΔE00 5.34
Lavender Pink
#DD85D7
ΔE00 5.89
Baby Purple
#CA9BF7
ΔE00 7.39
Violet Pink
#FB5FFC
ΔE00 7.51
Light Magenta
#FA5FF7
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#EC8CFB #9BFB8C
analogous
#B58CFB #EC8CFB #FB8CD3
triadic
#EC8CFB #FBEC8C #8CFBEC
tetradic
#EC8CFB #FBB58C #9BFB8C #8CD3FB
square
#EC8CFB #FBB58C #9BFB8C #8CD3FB
split-complementary
#EC8CFB #D3FB8C #8CFBB5
monochromatic
#D816F7 #E251F9 #EC8CFB #F6C7FD #FAE1FE
Accessibility & contrast
On white
2.16
#EC8CFB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.71
#EC8CFB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #EC8CFB
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##EC8CFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##EC8CFB | 1.00 | 2.16 | 9.71 | 9.71 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7DA9FF
Deuteranopia (green-blind)
#98B4F8
Tritanopia (blue-blind)
#EF99B8
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #ec8cfb; /* rgb */ color: rgb(236, 140, 251); /* oklch */ color: oklch(78.0% 0.181 322.0);
Tailwind
colors: {
custom: {
50: '#f4b0fd',
500: '#ec8cfb',
950: '#000000',
},
}SCSS
$custom: #ec8cfb; $custom-light: #f4b0fd; $custom-dark: #000000;
JSON
{
"hex": "#ec8cfb",
"rgb": {
"r": 236,
"g": 140,
"b": 251
},
"hsl": {
"h": 291.892,
"s": 93.277,
"l": 76.667
},
"oklch": {
"l": 0.77982,
"c": 0.18097,
"h": 322
},
"luminance": 0.43554
}Semantic roles & 50–950 ramp
primary
#EC8CFB
secondary
#D9F6D5
accent
#E6001F
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085