#8C2AA4#8C2AA4
#8C2AA4 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.195 H 318.8°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2AA4 |
|---|---|
| RGB | rgb(140, 42, 164) |
| HSL | hsl(288, 59%, 40%) |
| HSV | hsv(288, 74%, 64%) |
| CMYK | cmyk(14.6%, 74.4%, 0%, 35.7%) |
| CIE-LAB | lab(37.69, 57.54, -45.82) |
| CIE-LCH | lch(37.69, 73.55, 321.47°) |
| OKLab | oklab(48.82% 0.1472 -0.1286) |
| OKLCH | oklch(48.82% 0.195 318.8) |
| XYZ | xyz(18.3431, 9.9126, 36.0619) |
| Luminance | 0.0991 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.58
Barney Purple
#A00498
ΔE00 5.09
Purply
#983FB2
ΔE00 5.17
Warm Purple
#952E8F
ΔE00 5.21
Darkmagenta
#8B008B
ΔE00 5.68
Barney
#AC1DB8
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2AA4 #42A42A
analogous
#4F2AA4 #8C2AA4 #A42A7F
triadic
#8C2AA4 #A48C2A #2AA48C
tetradic
#8C2AA4 #A44F2A #42A42A #2A7FA4
square
#8C2AA4 #A44F2A #42A42A #2A7FA4
split-complementary
#8C2AA4 #7FA42A #2AA44F
monochromatic
#391143 #621E73 #8C2AA4 #B13ECD #C56EDA
Accessibility & contrast
On white
7.04
#8C2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#8C2AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C2AA4
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2AA4 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#325CA1
Tritanopia (blue-blind)
#8C4365
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8c2aa4; /* rgb */ color: rgb(140, 42, 164); /* oklch */ color: oklch(48.8% 0.195 318.8);
Tailwind
colors: {
custom: {
50: '#b16ec0',
500: '#8c2aa4',
950: '#000000',
},
}SCSS
$custom: #8c2aa4; $custom-light: #b16ec0; $custom-dark: #000000;
JSON
{
"hex": "#8c2aa4",
"rgb": {
"r": 140,
"g": 42,
"b": 164
},
"hsl": {
"h": 288.197,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.4882,
"c": 0.19546,
"h": 318.8
},
"luminance": 0.09912
}Semantic roles & 50–950 ramp
primary
#8C2AA4
secondary
#7AC169
accent
#E24564
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81