#8A2BAB#8A2BAB
#8A2BAB is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.200 H 315.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2BAB |
|---|---|
| RGB | rgb(138, 43, 171) |
| HSL | hsl(285, 60%, 42%) |
| HSV | hsv(285, 75%, 67%) |
| CMYK | cmyk(19.3%, 74.9%, 0%, 32.9%) |
| CIE-LAB | lab(37.97, 58.14, -49.56) |
| CIE-LCH | lch(37.97, 76.40, 319.56°) |
| OKLab | oklab(49.11% 0.1429 -0.1397) |
| OKLCH | oklch(49.11% 0.2 315.7) |
| XYZ | xyz(18.6946, 10.0720, 39.4795) |
| Luminance | 0.1007 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.76
Purply
#983FB2
ΔE00 5.08
Darkorchid
#9932CC
ΔE00 5.69
Darkviolet
#9400D3
ΔE00 5.87
Barney
#AC1DB8
ΔE00 6.01
Barney Purple
#A00498
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2BAB #4CAB2B
analogous
#4A2BAB #8A2BAB #AB2B8C
triadic
#8A2BAB #AB8A2B #2BAB8A
tetradic
#8A2BAB #AB4A2B #4CAB2B #2B8CAB
square
#8A2BAB #AB4A2B #4CAB2B #2B8CAB
split-complementary
#8A2BAB #8CAB2B #2BAB4A
monochromatic
#3B1249 #631F7A #8A2BAB #AC43D0 #C174DC
Accessibility & contrast
On white
6.97
#8A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#8A2BAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2BAB
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2BAB | 1.00 | 6.97 | 3.01 | 6.97 |
| #FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#285CA8
Tritanopia (blue-blind)
#884769
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8a2bab; /* rgb */ color: rgb(138, 43, 171); /* oklch */ color: oklch(49.1% 0.200 315.7);
Tailwind
colors: {
custom: {
50: '#b06ec5',
500: '#8a2bab',
950: '#000000',
},
}SCSS
$custom: #8a2bab; $custom-light: #b06ec5; $custom-dark: #000000;
JSON
{
"hex": "#8a2bab",
"rgb": {
"r": 138,
"g": 43,
"b": 171
},
"hsl": {
"h": 284.531,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.4911,
"c": 0.19985,
"h": 315.7
},
"luminance": 0.10071
}Semantic roles & 50–950 ramp
primary
#8A2BAB
secondary
#84C46E
accent
#E3456E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82