#8A37A1#8A37A1
#8A37A1 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.7% C 0.176 H 318.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).
Color values
| HEX | #8A37A1 |
|---|---|
| RGB | rgb(138, 55, 161) |
| HSL | hsl(287, 49%, 42%) |
| HSV | hsv(287, 66%, 63%) |
| CMYK | cmyk(14.3%, 65.8%, 0%, 36.9%) |
| CIE-LAB | lab(39.09, 51.17, -41.79) |
| CIE-LCH | lch(39.09, 66.06, 320.76°) |
| OKLab | oklab(49.7% 0.1309 -0.117) |
| OKLCH | oklch(49.7% 0.176 318.2) |
| XYZ | xyz(18.2796, 10.7096, 34.8156) |
| Luminance | 0.1071 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.04
Warm Purple
#952E8F
ΔE00 4.83
Purple (survey)
#7E1E9C
ΔE00 5.14
Medium Purple
#9E43A2
ΔE00 5.48
Barney Purple
#A00498
ΔE00 6.09
Barney
#AC1DB8
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A37A1 #4EA137
analogous
#5537A1 #8A37A1 #A13783
triadic
#8A37A1 #A18A37 #37A18A
tetradic
#8A37A1 #A15537 #4EA137 #3783A1
square
#8A37A1 #A15537 #4EA137 #3783A1
split-complementary
#8A37A1 #83A137 #37A155
monochromatic
#3C1846 #632773 #8A37A1 #AB51C4 #C17FD3
Accessibility & contrast
On white
6.68
#8A37A1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#8A37A1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A37A1
6.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A37A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A37A1 | 1.00 | 6.68 | 3.14 | 6.68 |
| #FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#3C5F9E
Tritanopia (blue-blind)
#8A4A67
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a37a1; /* rgb */ color: rgb(138, 55, 161); /* oklch */ color: oklch(49.7% 0.176 318.2);
Tailwind
colors: {
custom: {
50: '#af74bd',
500: '#8a37a1',
950: '#000000',
},
}SCSS
$custom: #8a37a1; $custom-light: #af74bd; $custom-dark: #000000;
JSON
{
"hex": "#8a37a1",
"rgb": {
"r": 138,
"g": 55,
"b": 161
},
"hsl": {
"h": 286.981,
"s": 49.074,
"l": 42.353
},
"oklch": {
"l": 0.49702,
"c": 0.17554,
"h": 318.2
},
"luminance": 0.10709
}Semantic roles & 50–950 ramp
primary
#8A37A1
secondary
#86BD77
accent
#D94F6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81