#8A37B1#8A37B1
#8A37B1 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.191 H 312.8°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #8A37B1 |
|---|---|
| RGB | rgb(138, 55, 177) |
| HSL | hsl(281, 53%, 45%) |
| HSV | hsv(281, 69%, 69%) |
| CMYK | cmyk(22%, 68.9%, 0%, 30.6%) |
| CIE-LAB | lab(40.10, 54.51, -49.70) |
| CIE-LCH | lch(40.10, 73.76, 317.64°) |
| OKLab | oklab(50.75% 0.13 -0.1402) |
| OKLCH | oklch(50.75% 0.191 312.8) |
| XYZ | xyz(19.7818, 11.3105, 42.7275) |
| Luminance | 0.1131 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.57
Darkorchid
#9932CC
ΔE00 4.37
Purple (survey)
#7E1E9C
ΔE00 5.78
Barney
#AC1DB8
ΔE00 5.99
Darkviolet
#9400D3
ΔE00 6.05
Medium Purple
#9E43A2
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A37B1 #5EB137
analogous
#4D37B1 #8A37B1 #B1379B
triadic
#8A37B1 #B18A37 #37B18A
tetradic
#8A37B1 #B14D37 #5EB137 #379BB1
square
#8A37B1 #B14D37 #5EB137 #379BB1
split-complementary
#8A37B1 #9BB137 #37B14D
monochromatic
#411A54 #662882 #8A37B1 #A75ACC #C088DA
Accessibility & contrast
On white
6.44
#8A37B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#8A37B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A37B1
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A37B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A37B1 | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#2D60AE
Tritanopia (blue-blind)
#865070
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a37b1; /* rgb */ color: rgb(138, 55, 177); /* oklch */ color: oklch(50.8% 0.191 312.8);
Tailwind
colors: {
custom: {
50: '#b074c9',
500: '#8a37b1',
950: '#000000',
},
}SCSS
$custom: #8a37b1; $custom-light: #b074c9; $custom-dark: #000000;
JSON
{
"hex": "#8a37b1",
"rgb": {
"r": 138,
"g": 55,
"b": 177
},
"hsl": {
"h": 280.82,
"s": 52.586,
"l": 45.49
},
"oklch": {
"l": 0.50753,
"c": 0.19118,
"h": 312.8
},
"luminance": 0.1131
}Semantic roles & 50–950 ramp
primary
#8A37B1
secondary
#96C480
accent
#DC4C7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82