#8A37A6#8A37A6
#8A37A6 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.0% C 0.180 H 316.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #8A37A6 |
|---|---|
| RGB | rgb(138, 55, 166) |
| HSL | hsl(285, 50%, 43%) |
| HSV | hsv(285, 67%, 65%) |
| CMYK | cmyk(16.9%, 66.9%, 0%, 34.9%) |
| CIE-LAB | lab(39.39, 52.19, -44.29) |
| CIE-LCH | lch(39.39, 68.45, 319.68°) |
| OKLab | oklab(50.02% 0.1307 -0.1243) |
| OKLCH | oklch(50.02% 0.18 316.4) |
| XYZ | xyz(18.7293, 10.8895, 37.1843) |
| Luminance | 0.1089 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.68
Purple (survey)
#7E1E9C
ΔE00 5.17
Warm Purple
#952E8F
ΔE00 5.63
Medium Purple
#9E43A2
ΔE00 5.81
Darkorchid
#9932CC
ΔE00 5.97
Barney
#AC1DB8
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A37A6 #53A637
analogous
#5237A6 #8A37A6 #A6378A
triadic
#8A37A6 #A68A37 #37A68A
tetradic
#8A37A6 #A65237 #53A637 #378AA6
square
#8A37A6 #A65237 #53A637 #378AA6
split-complementary
#8A37A6 #8AA637 #37A652
monochromatic
#3E194A #642878 #8A37A6 #A954C6 #C082D6
Accessibility & contrast
On white
6.61
#8A37A6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#8A37A6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A37A6
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A37A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A37A6 | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#385FA3
Tritanopia (blue-blind)
#884C6A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8a37a6; /* rgb */ color: rgb(138, 55, 166); /* oklch */ color: oklch(50.0% 0.180 316.4);
Tailwind
colors: {
custom: {
50: '#af74c1',
500: '#8a37a6',
950: '#000000',
},
}SCSS
$custom: #8a37a6; $custom-light: #af74c1; $custom-dark: #000000;
JSON
{
"hex": "#8a37a6",
"rgb": {
"r": 138,
"g": 55,
"b": 166
},
"hsl": {
"h": 284.865,
"s": 50.226,
"l": 43.333
},
"oklch": {
"l": 0.50022,
"c": 0.18039,
"h": 316.4
},
"luminance": 0.10889
}Semantic roles & 50–950 ramp
primary
#8A37A6
secondary
#8BBF7A
accent
#DA4E71
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81