#8A36B4#8A36B4
#8A36B4 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.195 H 312.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B4 |
|---|---|
| RGB | rgb(138, 54, 180) |
| HSL | hsl(280, 54%, 46%) |
| HSV | hsv(280, 70%, 71%) |
| CMYK | cmyk(23.3%, 70%, 0%, 29.4%) |
| CIE-LAB | lab(40.14, 55.58, -51.40) |
| CIE-LCH | lch(40.14, 75.71, 317.24°) |
| OKLab | oklab(50.85% 0.1308 -0.1452) |
| OKLCH | oklch(50.85% 0.195 312) |
| XYZ | xyz(20.0371, 11.3374, 44.3040) |
| Luminance | 0.1134 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.81
Darkorchid
#9932CC
ΔE00 4.01
Darkviolet
#9400D3
ΔE00 5.59
Purple (survey)
#7E1E9C
ΔE00 5.90
Barney
#AC1DB8
ΔE00 6.04
Blueviolet
#8A2BE2
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B4 #60B436
analogous
#4B36B4 #8A36B4 #B4369F
triadic
#8A36B4 #B48A36 #36B48A
tetradic
#8A36B4 #B44B36 #60B436 #369FB4
square
#8A36B4 #B44B36 #60B436 #369FB4
split-complementary
#8A36B4 #9FB436 #36B44B
monochromatic
#421A56 #662885 #8A36B4 #A75ACD #C089DC
Accessibility & contrast
On white
6.43
#8A36B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#8A36B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B4
6.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B4 | 1.00 | 6.43 | 3.27 | 6.43 |
| #FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#2860B1
Tritanopia (blue-blind)
#855171
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a36b4; /* rgb */ color: rgb(138, 54, 180); /* oklch */ color: oklch(50.8% 0.195 312.0);
Tailwind
colors: {
custom: {
50: '#b074cb',
500: '#8a36b4',
950: '#000000',
},
}SCSS
$custom: #8a36b4; $custom-light: #b074cb; $custom-dark: #000000;
JSON
{
"hex": "#8a36b4",
"rgb": {
"r": 138,
"g": 54,
"b": 180
},
"hsl": {
"h": 280,
"s": 53.846,
"l": 45.882
},
"oklch": {
"l": 0.50848,
"c": 0.19539,
"h": 312
},
"luminance": 0.11337
}Semantic roles & 50–950 ramp
primary
#8A36B4
secondary
#97C680
accent
#DD4B7B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82