#8B2AA5#8B2AA5
#8B2AA5 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.196 H 318.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8B2AA5 |
|---|---|
| RGB | rgb(139, 42, 165) |
| HSL | hsl(287, 59%, 41%) |
| HSV | hsv(287, 75%, 65%) |
| CMYK | cmyk(15.8%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(37.59, 57.53, -46.57) |
| CIE-LCH | lch(37.59, 74.02, 321.01°) |
| OKLab | oklab(48.75% 0.1459 -0.1309) |
| OKLCH | oklch(48.75% 0.196 318.1) |
| XYZ | xyz(18.2660, 9.8623, 36.5315) |
| Luminance | 0.0986 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.45
Purply
#983FB2
ΔE00 5.24
Barney Purple
#A00498
ΔE00 5.35
Warm Purple
#952E8F
ΔE00 5.51
Darkmagenta
#8B008B
ΔE00 5.83
Barney
#AC1DB8
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B2AA5 #44A52A
analogous
#4D2AA5 #8B2AA5 #A52A81
triadic
#8B2AA5 #A58B2A #2AA58B
tetradic
#8B2AA5 #A54D2A #44A52A #2A81A5
square
#8B2AA5 #A54D2A #44A52A #2A81A5
split-complementary
#8B2AA5 #81A52A #2AA54D
monochromatic
#391143 #621E74 #8B2AA5 #B03ECE #C46FDA
Accessibility & contrast
On white
7.06
#8B2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#8B2AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8B2AA5
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B2AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B2AA5 | 1.00 | 7.06 | 2.97 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2F5BA2
Tritanopia (blue-blind)
#8A4366
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8b2aa5; /* rgb */ color: rgb(139, 42, 165); /* oklch */ color: oklch(48.7% 0.196 318.1);
Tailwind
colors: {
custom: {
50: '#b16ec0',
500: '#8b2aa5',
950: '#000000',
},
}SCSS
$custom: #8b2aa5; $custom-light: #b16ec0; $custom-dark: #000000;
JSON
{
"hex": "#8b2aa5",
"rgb": {
"r": 139,
"g": 42,
"b": 165
},
"hsl": {
"h": 287.317,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.48746,
"c": 0.19595,
"h": 318.1
},
"luminance": 0.09862
}Semantic roles & 50–950 ramp
primary
#8B2AA5
secondary
#7CC169
accent
#E34566
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81