#8A2BA5#8A2BA5
#8A2BA5 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.194 H 317.6°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2BA5 |
|---|---|
| RGB | rgb(138, 43, 165) |
| HSL | hsl(287, 59%, 41%) |
| HSV | hsv(287, 74%, 65%) |
| CMYK | cmyk(16.4%, 73.9%, 0%, 35.3%) |
| CIE-LAB | lab(37.57, 56.95, -46.62) |
| CIE-LCH | lch(37.57, 73.60, 320.70°) |
| OKLab | oklab(48.7% 0.1436 -0.131) |
| OKLCH | oklch(48.7% 0.194 317.6) |
| XYZ | xyz(18.1357, 9.8484, 36.5357) |
| Luminance | 0.0985 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.41
Purply
#983FB2
ΔE00 5.24
Barney Purple
#A00498
ΔE00 5.54
Warm Purple
#952E8F
ΔE00 5.61
Darkmagenta
#8B008B
ΔE00 5.94
Barney
#AC1DB8
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2BA5 #46A52B
analogous
#4D2BA5 #8A2BA5 #A52B83
triadic
#8A2BA5 #A58A2B #2BA58A
tetradic
#8A2BA5 #A54D2B #46A52B #2B83A5
square
#8A2BA5 #A54D2B #46A52B #2B83A5
split-complementary
#8A2BA5 #83A52B #2BA54D
monochromatic
#391244 #611E74 #8A2BA5 #AE40CD #C371DA
Accessibility & contrast
On white
7.07
#8A2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#8A2BA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2BA5
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2BA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2BA5 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2F5BA2
Tritanopia (blue-blind)
#894466
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8a2ba5; /* rgb */ color: rgb(138, 43, 165); /* oklch */ color: oklch(48.7% 0.194 317.6);
Tailwind
colors: {
custom: {
50: '#b06ec0',
500: '#8a2ba5',
950: '#000000',
},
}SCSS
$custom: #8a2ba5; $custom-light: #b06ec0; $custom-dark: #000000;
JSON
{
"hex": "#8a2ba5",
"rgb": {
"r": 138,
"g": 43,
"b": 165
},
"hsl": {
"h": 286.721,
"s": 58.654,
"l": 40.784
},
"oklch": {
"l": 0.48696,
"c": 0.19443,
"h": 317.6
},
"luminance": 0.09848
}Semantic roles & 50–950 ramp
primary
#8A2BA5
secondary
#7EC16B
accent
#E24668
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81