#8A36B7#8A36B7
#8A36B7 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 51.1% C 0.198 H 311.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B7 |
|---|---|
| RGB | rgb(138, 54, 183) |
| HSL | hsl(279, 54%, 46%) |
| HSV | hsv(279, 70%, 72%) |
| CMYK | cmyk(24.6%, 70.5%, 0%, 28.2%) |
| CIE-LAB | lab(40.35, 56.23, -52.85) |
| CIE-LCH | lch(40.35, 77.16, 316.78°) |
| OKLab | oklab(51.06% 0.1305 -0.1494) |
| OKLCH | oklch(51.06% 0.198 311.1) |
| XYZ | xyz(20.3460, 11.4610, 45.9310) |
| Luminance | 0.1146 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.66
Purply
#983FB2
ΔE00 3.98
Darkviolet
#9400D3
ΔE00 5.29
Blueviolet
#8A2BE2
ΔE00 6.10
Barney
#AC1DB8
ΔE00 6.14
Purple (survey)
#7E1E9C
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B7 #63B736
analogous
#4A36B7 #8A36B7 #B736A4
triadic
#8A36B7 #B78A36 #36B78A
tetradic
#8A36B7 #B74A36 #63B736 #36A4B7
square
#8A36B7 #B74A36 #63B736 #36A4B7
split-complementary
#8A36B7 #A4B736 #36B74A
monochromatic
#431A58 #662888 #8A36B7 #A75BCF #C08BDD
Accessibility & contrast
On white
6.38
#8A36B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#8A36B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B7
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B7 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#2361B4
Tritanopia (blue-blind)
#845273
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a36b7; /* rgb */ color: rgb(138, 54, 183); /* oklch */ color: oklch(51.1% 0.198 311.1);
Tailwind
colors: {
custom: {
50: '#b074cd',
500: '#8a36b7',
950: '#000000',
},
}SCSS
$custom: #8a36b7; $custom-light: #b074cd; $custom-dark: #000000;
JSON
{
"hex": "#8a36b7",
"rgb": {
"r": 138,
"g": 54,
"b": 183
},
"hsl": {
"h": 279.07,
"s": 54.43,
"l": 46.471
},
"oklch": {
"l": 0.51058,
"c": 0.19833,
"h": 311.1
},
"luminance": 0.11461
}Semantic roles & 50–950 ramp
primary
#8A36B7
secondary
#9AC782
accent
#DE4A7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82