#8A36B0#8A36B0
#8A36B0 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.191 H 313.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B0 |
|---|---|
| RGB | rgb(138, 54, 176) |
| HSL | hsl(281, 53%, 45%) |
| HSV | hsv(281, 69%, 69%) |
| CMYK | cmyk(21.6%, 69.3%, 0%, 31%) |
| CIE-LAB | lab(39.88, 54.73, -49.47) |
| CIE-LCH | lch(39.88, 73.77, 317.89°) |
| OKLab | oklab(50.57% 0.1312 -0.1395) |
| OKLCH | oklch(50.57% 0.191 313.2) |
| XYZ | xyz(19.6355, 11.1768, 42.1889) |
| Luminance | 0.1118 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.67
Darkorchid
#9932CC
ΔE00 4.52
Purple (survey)
#7E1E9C
ΔE00 5.55
Barney
#AC1DB8
ΔE00 5.95
Darkviolet
#9400D3
ΔE00 6.05
Medium Purple
#9E43A2
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B0 #5CB036
analogous
#4D36B0 #8A36B0 #B03699
triadic
#8A36B0 #B08A36 #36B08A
tetradic
#8A36B0 #B04D36 #5CB036 #3699B0
square
#8A36B0 #B04D36 #5CB036 #3699B0
split-complementary
#8A36B0 #99B036 #36B04D
monochromatic
#411952 #652881 #8A36B0 #A758CC #C086DA
Accessibility & contrast
On white
6.49
#8A36B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#8A36B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B0
6.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B0 | 1.00 | 6.49 | 3.24 | 6.49 |
| #FFFFFF | 6.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#2D60AD
Tritanopia (blue-blind)
#864F6F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a36b0; /* rgb */ color: rgb(138, 54, 176); /* oklch */ color: oklch(50.6% 0.191 313.2);
Tailwind
colors: {
custom: {
50: '#b074c8',
500: '#8a36b0',
950: '#000000',
},
}SCSS
$custom: #8a36b0; $custom-light: #b074c8; $custom-dark: #000000;
JSON
{
"hex": "#8a36b0",
"rgb": {
"r": 138,
"g": 54,
"b": 176
},
"hsl": {
"h": 281.311,
"s": 53.043,
"l": 45.098
},
"oklch": {
"l": 0.50573,
"c": 0.19148,
"h": 313.2
},
"luminance": 0.11176
}Semantic roles & 50–950 ramp
primary
#8A36B0
secondary
#94C47E
accent
#DC4B79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82