#8A36B1#8A36B1
#8A36B1 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.192 H 312.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B1 |
|---|---|
| RGB | rgb(138, 54, 177) |
| HSL | hsl(281, 53%, 45%) |
| HSV | hsv(281, 69%, 69%) |
| CMYK | cmyk(22%, 69.5%, 0%, 30.6%) |
| CIE-LAB | lab(39.94, 54.94, -49.95) |
| CIE-LCH | lch(39.94, 74.26, 317.72°) |
| OKLab | oklab(50.64% 0.1311 -0.1409) |
| OKLCH | oklch(50.64% 0.192 312.9) |
| XYZ | xyz(19.7348, 11.2165, 42.7119) |
| Luminance | 0.1122 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.69
Darkorchid
#9932CC
ΔE00 4.39
Purple (survey)
#7E1E9C
ΔE00 5.63
Darkviolet
#9400D3
ΔE00 5.93
Barney
#AC1DB8
ΔE00 5.96
Medium Purple
#9E43A2
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B1 #5DB136
analogous
#4D36B1 #8A36B1 #B1369A
triadic
#8A36B1 #B18A36 #36B18A
tetradic
#8A36B1 #B14D36 #5DB136 #369AB1
square
#8A36B1 #B14D36 #5DB136 #369AB1
split-complementary
#8A36B1 #9AB136 #36B14D
monochromatic
#411953 #652882 #8A36B1 #A758CC #C087DA
Accessibility & contrast
On white
6.48
#8A36B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#8A36B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B1
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B1 | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#2C60AE
Tritanopia (blue-blind)
#86506F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a36b1; /* rgb */ color: rgb(138, 54, 177); /* oklch */ color: oklch(50.6% 0.192 312.9);
Tailwind
colors: {
custom: {
50: '#b074c9',
500: '#8a36b1',
950: '#000000',
},
}SCSS
$custom: #8a36b1; $custom-light: #b074c9; $custom-dark: #000000;
JSON
{
"hex": "#8a36b1",
"rgb": {
"r": 138,
"g": 54,
"b": 177
},
"hsl": {
"h": 280.976,
"s": 53.247,
"l": 45.294
},
"oklch": {
"l": 0.50642,
"c": 0.19245,
"h": 312.9
},
"luminance": 0.11216
}Semantic roles & 50–950 ramp
primary
#8A36B1
secondary
#95C47F
accent
#DD4B79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82