#8A32B1#8A32B1
#8A32B1 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.197 H 313.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8A32B1 |
|---|---|
| RGB | rgb(138, 50, 177) |
| HSL | hsl(282, 56%, 45%) |
| HSV | hsv(282, 72%, 69%) |
| CMYK | cmyk(22%, 71.8%, 0%, 30.6%) |
| CIE-LAB | lab(39.34, 56.63, -50.92) |
| CIE-LCH | lch(39.34, 76.16, 318.04°) |
| OKLab | oklab(50.21% 0.1353 -0.1437) |
| OKLCH | oklch(50.21% 0.197 313.3) |
| XYZ | xyz(19.5563, 10.8594, 42.6524) |
| Luminance | 0.1086 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.20
Darkorchid
#9932CC
ΔE00 4.53
Purple (survey)
#7E1E9C
ΔE00 5.09
Darkviolet
#9400D3
ΔE00 5.53
Barney
#AC1DB8
ΔE00 5.92
Blueviolet
#8A2BE2
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A32B1 #59B132
analogous
#4B32B1 #8A32B1 #B13299
triadic
#8A32B1 #B18A32 #32B18A
tetradic
#8A32B1 #B14B32 #59B132 #3299B1
square
#8A32B1 #B14B32 #59B132 #3299B1
split-complementary
#8A32B1 #99B132 #32B14B
monochromatic
#401752 #652581 #8A32B1 #A852CE #C082DC
Accessibility & contrast
On white
6.62
#8A32B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#8A32B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A32B1
6.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A32B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A32B1 | 1.00 | 6.62 | 3.17 | 6.62 |
| #FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#275FAE
Tritanopia (blue-blind)
#864D6E
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8a32b1; /* rgb */ color: rgb(138, 50, 177); /* oklch */ color: oklch(50.2% 0.197 313.3);
Tailwind
colors: {
custom: {
50: '#b072c9',
500: '#8a32b1',
950: '#000000',
},
}SCSS
$custom: #8a32b1; $custom-light: #b072c9; $custom-dark: #000000;
JSON
{
"hex": "#8a32b1",
"rgb": {
"r": 138,
"g": 50,
"b": 177
},
"hsl": {
"h": 281.575,
"s": 55.947,
"l": 44.51
},
"oklch": {
"l": 0.50213,
"c": 0.19738,
"h": 313.3
},
"luminance": 0.10859
}Semantic roles & 50–950 ramp
primary
#8A32B1
secondary
#91C57A
accent
#DF4977
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82