#8A37A2#8A37A2
#8A37A2 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.8% C 0.177 H 317.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).
Color values
| HEX | #8A37A2 |
|---|---|
| RGB | rgb(138, 55, 162) |
| HSL | hsl(287, 49%, 43%) |
| HSV | hsv(287, 66%, 64%) |
| CMYK | cmyk(14.8%, 66%, 0%, 36.5%) |
| CIE-LAB | lab(39.15, 51.37, -42.29) |
| CIE-LCH | lch(39.15, 66.54, 320.54°) |
| OKLab | oklab(49.77% 0.1309 -0.1184) |
| OKLCH | oklch(49.77% 0.177 317.8) |
| XYZ | xyz(18.3681, 10.7451, 35.2819) |
| Luminance | 0.1074 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.95
Warm Purple
#952E8F
ΔE00 4.99
Purple (survey)
#7E1E9C
ΔE00 5.13
Medium Purple
#9E43A2
ΔE00 5.54
Barney Purple
#A00498
ΔE00 6.18
Barney
#AC1DB8
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A37A2 #4FA237
analogous
#5437A2 #8A37A2 #A23785
triadic
#8A37A2 #A28A37 #37A28A
tetradic
#8A37A2 #A25437 #4FA237 #3785A2
square
#8A37A2 #A25437 #4FA237 #3785A2
split-complementary
#8A37A2 #85A237 #37A254
monochromatic
#3C1847 #632774 #8A37A2 #AB52C4 #C180D4
Accessibility & contrast
On white
6.67
#8A37A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#8A37A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A37A2
6.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A37A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A37A2 | 1.00 | 6.67 | 3.15 | 6.67 |
| #FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F57A5
Deuteranopia (green-blind)
#3B5F9F
Tritanopia (blue-blind)
#894A68
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a37a2; /* rgb */ color: rgb(138, 55, 162); /* oklch */ color: oklch(49.8% 0.177 317.8);
Tailwind
colors: {
custom: {
50: '#af74be',
500: '#8a37a2',
950: '#000000',
},
}SCSS
$custom: #8a37a2; $custom-light: #af74be; $custom-dark: #000000;
JSON
{
"hex": "#8a37a2",
"rgb": {
"r": 138,
"g": 55,
"b": 162
},
"hsl": {
"h": 286.542,
"s": 49.309,
"l": 42.549
},
"oklch": {
"l": 0.49766,
"c": 0.17651,
"h": 317.8
},
"luminance": 0.10744
}Semantic roles & 50–950 ramp
primary
#8A37A2
secondary
#87BD78
accent
#D94F6E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81