#8A2B97#8A2B97
#8A2B97 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.182 H 322.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2B97 |
|---|---|
| RGB | rgb(138, 43, 151) |
| HSL | hsl(293, 56%, 38%) |
| HSV | hsv(293, 72%, 59%) |
| CMYK | cmyk(8.6%, 71.5%, 0%, 40.8%) |
| CIE-LAB | lab(36.68, 54.26, -39.59) |
| CIE-LCH | lch(36.68, 67.16, 323.89°) |
| OKLab | oklab(47.78% 0.1446 -0.1105) |
| OKLCH | oklch(47.78% 0.182 322.6) |
| XYZ | xyz(16.9305, 9.3664, 30.1883) |
| Luminance | 0.0936 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.53
Purple (survey)
#7E1E9C
ΔE00 3.89
Barney Purple
#A00498
ΔE00 4.35
Darkmagenta
#8B008B
ΔE00 4.37
Purple
#800080
ΔE00 6.05
Purply
#983FB2
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2B97 #38972B
analogous
#542B97 #8A2B97 #972B6E
triadic
#8A2B97 #978A2B #2B978A
tetradic
#8A2B97 #97542B #38972B #2B6E97
square
#8A2B97 #97542B #38972B #2B6E97
split-complementary
#8A2B97 #6E972B #2B9754
monochromatic
#331038 #5E1D67 #8A2B97 #B539C7 #C768D4
Accessibility & contrast
On white
7.31
#8A2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#8A2B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2B97
7.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2B97 | 1.00 | 7.31 | 2.87 | 7.31 |
| #FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#024F9A
Deuteranopia (green-blind)
#3B5A94
Tritanopia (blue-blind)
#8C3E5E
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8a2b97; /* rgb */ color: rgb(138, 43, 151); /* oklch */ color: oklch(47.8% 0.182 322.6);
Tailwind
colors: {
custom: {
50: '#af6db6',
500: '#8a2b97',
950: '#000000',
},
}SCSS
$custom: #8a2b97; $custom-light: #af6db6; $custom-dark: #000000;
JSON
{
"hex": "#8a2b97",
"rgb": {
"r": 138,
"g": 43,
"b": 151
},
"hsl": {
"h": 292.778,
"s": 55.67,
"l": 38.039
},
"oklch": {
"l": 0.47778,
"c": 0.182,
"h": 322.6
},
"luminance": 0.09365
}Semantic roles & 50–950 ramp
primary
#8A2B97
secondary
#6EBB63
accent
#DF495B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80