#8A36B2#8A36B2
#8A36B2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.193 H 312.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36B2 |
|---|---|
| RGB | rgb(138, 54, 178) |
| HSL | hsl(281, 53%, 45%) |
| HSV | hsv(281, 70%, 70%) |
| CMYK | cmyk(22.5%, 69.7%, 0%, 30.2%) |
| CIE-LAB | lab(40.01, 55.16, -50.44) |
| CIE-LCH | lch(40.01, 74.74, 317.56°) |
| OKLab | oklab(50.71% 0.131 -0.1423) |
| OKLCH | oklch(50.71% 0.193 312.6) |
| XYZ | xyz(19.8348, 11.2565, 43.2387) |
| Luminance | 0.1126 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.73
Darkorchid
#9932CC
ΔE00 4.26
Purple (survey)
#7E1E9C
ΔE00 5.72
Darkviolet
#9400D3
ΔE00 5.82
Barney
#AC1DB8
ΔE00 5.98
Blueviolet
#8A2BE2
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36B2 #5EB236
analogous
#4C36B2 #8A36B2 #B2369C
triadic
#8A36B2 #B28A36 #36B28A
tetradic
#8A36B2 #B24C36 #5EB236 #369CB2
square
#8A36B2 #B24C36 #5EB236 #369CB2
split-complementary
#8A36B2 #9CB236 #36B24C
monochromatic
#411A54 #662883 #8A36B2 #A759CD #C088DB
Accessibility & contrast
On white
6.46
#8A36B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#8A36B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36B2
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36B2 | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2A60AF
Tritanopia (blue-blind)
#865070
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a36b2; /* rgb */ color: rgb(138, 54, 178); /* oklch */ color: oklch(50.7% 0.193 312.6);
Tailwind
colors: {
custom: {
50: '#b074ca',
500: '#8a36b2',
950: '#000000',
},
}SCSS
$custom: #8a36b2; $custom-light: #b074ca; $custom-dark: #000000;
JSON
{
"hex": "#8a36b2",
"rgb": {
"r": 138,
"g": 54,
"b": 178
},
"hsl": {
"h": 280.645,
"s": 53.448,
"l": 45.49
},
"oklch": {
"l": 0.5071,
"c": 0.19343,
"h": 312.6
},
"luminance": 0.11256
}Semantic roles & 50–950 ramp
primary
#8A36B2
secondary
#96C57F
accent
#DD4B7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82