#8A2BAA#8A2BAA
#8A2BAA is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.199 H 316.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2BAA |
|---|---|
| RGB | rgb(138, 43, 170) |
| HSL | hsl(285, 60%, 42%) |
| HSV | hsv(285, 75%, 67%) |
| CMYK | cmyk(18.8%, 74.7%, 0%, 33.3%) |
| CIE-LAB | lab(37.90, 57.94, -49.07) |
| CIE-LCH | lch(37.90, 75.93, 319.74°) |
| OKLab | oklab(49.04% 0.1431 -0.1382) |
| OKLCH | oklch(49.04% 0.199 316) |
| XYZ | xyz(18.5997, 10.0340, 38.9794) |
| Luminance | 0.1003 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.68
Purply
#983FB2
ΔE00 5.09
Darkorchid
#9932CC
ΔE00 5.82
Barney
#AC1DB8
ΔE00 6.02
Darkviolet
#9400D3
ΔE00 6.02
Barney Purple
#A00498
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2BAA #4BAA2B
analogous
#4B2BAA #8A2BAA #AA2B8B
triadic
#8A2BAA #AA8A2B #2BAA8A
tetradic
#8A2BAA #AA4B2B #4BAA2B #2B8BAA
square
#8A2BAA #AA4B2B #4BAA2B #2B8BAA
split-complementary
#8A2BAA #8BAA2B #2BAA4B
monochromatic
#3B1248 #621F79 #8A2BAA #AC43CF #C274DC
Accessibility & contrast
On white
6.98
#8A2BAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#8A2BAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2BAA
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2BAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2BAA | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#295CA7
Tritanopia (blue-blind)
#884669
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8a2baa; /* rgb */ color: rgb(138, 43, 170); /* oklch */ color: oklch(49.0% 0.199 316.0);
Tailwind
colors: {
custom: {
50: '#b06ec4',
500: '#8a2baa',
950: '#000000',
},
}SCSS
$custom: #8a2baa; $custom-light: #b06ec4; $custom-dark: #000000;
JSON
{
"hex": "#8a2baa",
"rgb": {
"r": 138,
"g": 43,
"b": 170
},
"hsl": {
"h": 284.882,
"s": 59.624,
"l": 41.765
},
"oklch": {
"l": 0.4904,
"c": 0.19894,
"h": 316
},
"luminance": 0.10033
}Semantic roles & 50–950 ramp
primary
#8A2BAA
secondary
#83C36E
accent
#E3456D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82