#8A36B5#8A36B5
#8A36B5 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.9% C 0.196 H 311.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B5 |
|---|---|
| RGB | rgb(138, 54, 181) |
| HSL | hsl(280, 54%, 46%) |
| HSV | hsv(280, 70%, 71%) |
| CMYK | cmyk(23.8%, 70.2%, 0%, 29%) |
| CIE-LAB | lab(40.21, 55.80, -51.89) |
| CIE-LCH | lch(40.21, 76.19, 317.08°) |
| OKLab | oklab(50.92% 0.1307 -0.1466) |
| OKLCH | oklch(50.92% 0.196 311.7) |
| XYZ | xyz(20.1393, 11.3783, 44.8424) |
| Luminance | 0.1138 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.86
Darkorchid
#9932CC
ΔE00 3.89
Darkviolet
#9400D3
ΔE00 5.49
Purple (survey)
#7E1E9C
ΔE00 6.00
Barney
#AC1DB8
ΔE00 6.07
Blueviolet
#8A2BE2
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B5 #61B536
analogous
#4A36B5 #8A36B5 #B536A0
triadic
#8A36B5 #B58A36 #36B58A
tetradic
#8A36B5 #B54A36 #61B536 #36A0B5
square
#8A36B5 #B54A36 #61B536 #36A0B5
split-complementary
#8A36B5 #A0B536 #36B54A
monochromatic
#421A57 #662886 #8A36B5 #A75ACE #C089DC
Accessibility & contrast
On white
6.41
#8A36B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#8A36B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B5
6.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B5 | 1.00 | 6.41 | 3.28 | 6.41 |
| #FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#2660B2
Tritanopia (blue-blind)
#855172
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a36b5; /* rgb */ color: rgb(138, 54, 181); /* oklch */ color: oklch(50.9% 0.196 311.7);
Tailwind
colors: {
custom: {
50: '#b074cc',
500: '#8a36b5',
950: '#000000',
},
}SCSS
$custom: #8a36b5; $custom-light: #b074cc; $custom-dark: #000000;
JSON
{
"hex": "#8a36b5",
"rgb": {
"r": 138,
"g": 54,
"b": 181
},
"hsl": {
"h": 279.685,
"s": 54.043,
"l": 46.078
},
"oklch": {
"l": 0.50918,
"c": 0.19637,
"h": 311.7
},
"luminance": 0.11378
}Semantic roles & 50–950 ramp
primary
#8A36B5
secondary
#98C681
accent
#DD4A7C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82