#8A36B6#8A36B6
#8A36B6 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 51.0% C 0.197 H 311.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B6 |
|---|---|
| RGB | rgb(138, 54, 182) |
| HSL | hsl(279, 54%, 46%) |
| HSV | hsv(279, 70%, 71%) |
| CMYK | cmyk(24.2%, 70.3%, 0%, 28.6%) |
| CIE-LAB | lab(40.28, 56.01, -52.37) |
| CIE-LCH | lch(40.28, 76.68, 316.93°) |
| OKLab | oklab(50.99% 0.1306 -0.148) |
| OKLCH | oklch(50.99% 0.197 311.4) |
| XYZ | xyz(20.2423, 11.4195, 45.3848) |
| Luminance | 0.1142 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.78
Purply
#983FB2
ΔE00 3.92
Darkviolet
#9400D3
ΔE00 5.39
Purple (survey)
#7E1E9C
ΔE00 6.10
Barney
#AC1DB8
ΔE00 6.10
Blueviolet
#8A2BE2
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B6 #62B636
analogous
#4A36B6 #8A36B6 #B636A2
triadic
#8A36B6 #B68A36 #36B68A
tetradic
#8A36B6 #B64A36 #62B636 #36A2B6
square
#8A36B6 #B64A36 #62B636 #36A2B6
split-complementary
#8A36B6 #A2B636 #36B64A
monochromatic
#421A58 #662887 #8A36B6 #A75BCE #C08ADC
Accessibility & contrast
On white
6.40
#8A36B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#8A36B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B6
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B6 | 1.00 | 6.40 | 3.28 | 6.40 |
| #FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#2560B3
Tritanopia (blue-blind)
#845272
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a36b6; /* rgb */ color: rgb(138, 54, 182); /* oklch */ color: oklch(51.0% 0.197 311.4);
Tailwind
colors: {
custom: {
50: '#b074cd',
500: '#8a36b6',
950: '#000000',
},
}SCSS
$custom: #8a36b6; $custom-light: #b074cd; $custom-dark: #000000;
JSON
{
"hex": "#8a36b6",
"rgb": {
"r": 138,
"g": 54,
"b": 182
},
"hsl": {
"h": 279.375,
"s": 54.237,
"l": 46.275
},
"oklch": {
"l": 0.50988,
"c": 0.19735,
"h": 311.4
},
"luminance": 0.11419
}Semantic roles & 50–950 ramp
primary
#8A36B6
secondary
#99C681
accent
#DE4A7D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82