#8C2AA0#8C2AA0
#8C2AA0 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.192 H 320.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2AA0 |
|---|---|
| RGB | rgb(140, 42, 160) |
| HSL | hsl(290, 58%, 40%) |
| HSV | hsv(290, 74%, 63%) |
| CMYK | cmyk(12.5%, 73.8%, 0%, 37.3%) |
| CIE-LAB | lab(37.43, 56.78, -43.82) |
| CIE-LCH | lch(37.43, 71.72, 322.34°) |
| OKLab | oklab(48.56% 0.1475 -0.1228) |
| OKLCH | oklch(48.56% 0.192 320.2) |
| XYZ | xyz(17.9876, 9.7704, 34.1893) |
| Luminance | 0.0977 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.59
Warm Purple
#952E8F
ΔE00 4.59
Barney Purple
#A00498
ΔE00 4.66
Darkmagenta
#8B008B
ΔE00 5.19
Purply
#983FB2
ΔE00 5.43
Barney
#AC1DB8
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2AA0 #3EA02A
analogous
#512AA0 #8C2AA0 #A02A79
triadic
#8C2AA0 #A08C2A #2AA08C
tetradic
#8C2AA0 #A0512A #3EA02A #2A79A0
square
#8C2AA0 #A0512A #3EA02A #2A79A0
split-complementary
#8C2AA0 #79A02A #2AA051
monochromatic
#37113F #621D70 #8C2AA0 #B33CCC #C66CD8
Accessibility & contrast
On white
7.11
#8C2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#8C2AA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C2AA0
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2AA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2AA0 | 1.00 | 7.11 | 2.95 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#355B9D
Tritanopia (blue-blind)
#8D4163
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8c2aa0; /* rgb */ color: rgb(140, 42, 160); /* oklch */ color: oklch(48.6% 0.192 320.2);
Tailwind
colors: {
custom: {
50: '#b16ebd',
500: '#8c2aa0',
950: '#000000',
},
}SCSS
$custom: #8c2aa0; $custom-light: #b16ebd; $custom-dark: #000000;
JSON
{
"hex": "#8c2aa0",
"rgb": {
"r": 140,
"g": 42,
"b": 160
},
"hsl": {
"h": 289.831,
"s": 58.416,
"l": 39.608
},
"oklch": {
"l": 0.48555,
"c": 0.19195,
"h": 320.2
},
"luminance": 0.09769
}Semantic roles & 50–950 ramp
primary
#8C2AA0
secondary
#76BF67
accent
#E24661
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81