#8A36B8#8A36B8
#8A36B8 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 51.1% C 0.199 H 310.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B8 |
|---|---|
| RGB | rgb(138, 54, 184) |
| HSL | hsl(279, 55%, 47%) |
| HSV | hsv(279, 71%, 72%) |
| CMYK | cmyk(25%, 70.7%, 0%, 27.8%) |
| CIE-LAB | lab(40.41, 56.44, -53.33) |
| CIE-LCH | lch(40.41, 77.65, 316.63°) |
| OKLab | oklab(51.13% 0.1303 -0.1508) |
| OKLCH | oklch(51.13% 0.199 310.8) |
| XYZ | xyz(20.4505, 11.5028, 46.4811) |
| Luminance | 0.1150 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.55
Purply
#983FB2
ΔE00 4.04
Darkviolet
#9400D3
ΔE00 5.19
Blueviolet
#8A2BE2
ΔE00 5.94
Barney
#AC1DB8
ΔE00 6.18
Purple (survey)
#7E1E9C
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B8 #64B836
analogous
#4936B8 #8A36B8 #B836A5
triadic
#8A36B8 #B88A36 #36B88A
tetradic
#8A36B8 #B84936 #64B836 #36A5B8
square
#8A36B8 #B84936 #64B836 #36A5B8
split-complementary
#8A36B8 #A5B836 #36B849
monochromatic
#431A59 #672889 #8A36B8 #A65CCF #C08BDD
Accessibility & contrast
On white
6.36
#8A36B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#8A36B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B8
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B8 | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#2261B5
Tritanopia (blue-blind)
#845273
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a36b8; /* rgb */ color: rgb(138, 54, 184); /* oklch */ color: oklch(51.1% 0.199 310.8);
Tailwind
colors: {
custom: {
50: '#b074ce',
500: '#8a36b8',
950: '#000000',
},
}SCSS
$custom: #8a36b8; $custom-light: #b074ce; $custom-dark: #000000;
JSON
{
"hex": "#8a36b8",
"rgb": {
"r": 138,
"g": 54,
"b": 184
},
"hsl": {
"h": 278.769,
"s": 54.622,
"l": 46.667
},
"oklch": {
"l": 0.51128,
"c": 0.19932,
"h": 310.8
},
"luminance": 0.11502
}Semantic roles & 50–950 ramp
primary
#8A36B8
secondary
#9BC782
accent
#DE4A7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82