#8C2AA5#8C2AA5
#8C2AA5 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.196 H 318.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2AA5 |
|---|---|
| RGB | rgb(140, 42, 165) |
| HSL | hsl(288, 59%, 41%) |
| HSV | hsv(288, 75%, 65%) |
| CMYK | cmyk(15.2%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(37.75, 57.74, -46.31) |
| CIE-LCH | lch(37.75, 74.01, 321.27°) |
| OKLab | oklab(48.89% 0.1471 -0.1301) |
| OKLCH | oklch(48.89% 0.196 318.5) |
| XYZ | xyz(18.4338, 9.9489, 36.5393) |
| Luminance | 0.0995 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.60
Purply
#983FB2
ΔE00 5.12
Barney Purple
#A00498
ΔE00 5.20
Warm Purple
#952E8F
ΔE00 5.36
Darkmagenta
#8B008B
ΔE00 5.82
Barney
#AC1DB8
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2AA5 #43A52A
analogous
#4E2AA5 #8C2AA5 #A52A80
triadic
#8C2AA5 #A58C2A #2AA58C
tetradic
#8C2AA5 #A54E2A #43A52A #2A80A5
square
#8C2AA5 #A54E2A #43A52A #2A80A5
split-complementary
#8C2AA5 #80A52A #2AA54E
monochromatic
#391143 #631E74 #8C2AA5 #B13ECE #C56FDA
Accessibility & contrast
On white
7.02
#8C2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#8C2AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C2AA5
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2AA5 | 1.00 | 7.02 | 2.99 | 7.02 |
| #FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#315CA2
Tritanopia (blue-blind)
#8C4366
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8c2aa5; /* rgb */ color: rgb(140, 42, 165); /* oklch */ color: oklch(48.9% 0.196 318.5);
Tailwind
colors: {
custom: {
50: '#b16ec0',
500: '#8c2aa5',
950: '#000000',
},
}SCSS
$custom: #8c2aa5; $custom-light: #b16ec0; $custom-dark: #000000;
JSON
{
"hex": "#8c2aa5",
"rgb": {
"r": 140,
"g": 42,
"b": 165
},
"hsl": {
"h": 287.805,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.48888,
"c": 0.19634,
"h": 318.5
},
"luminance": 0.09948
}Semantic roles & 50–950 ramp
primary
#8C2AA5
secondary
#7BC169
accent
#E34565
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81