#8A2BA9#8A2BA9
#8A2BA9 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.198 H 316.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2BA9 |
|---|---|
| RGB | rgb(138, 43, 169) |
| HSL | hsl(285, 59%, 42%) |
| HSV | hsv(285, 75%, 66%) |
| CMYK | cmyk(18.3%, 74.6%, 0%, 33.7%) |
| CIE-LAB | lab(37.84, 57.74, -48.59) |
| CIE-LCH | lch(37.84, 75.46, 319.92°) |
| OKLab | oklab(48.97% 0.1432 -0.1368) |
| OKLCH | oklch(48.97% 0.198 316.3) |
| XYZ | xyz(18.5054, 9.9963, 38.4831) |
| Luminance | 0.1000 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.61
Purply
#983FB2
ΔE00 5.11
Darkorchid
#9932CC
ΔE00 5.96
Barney Purple
#A00498
ΔE00 6.00
Barney
#AC1DB8
ΔE00 6.03
Darkviolet
#9400D3
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2BA9 #4AA92B
analogous
#4B2BA9 #8A2BA9 #A92B89
triadic
#8A2BA9 #A98A2B #2BA98A
tetradic
#8A2BA9 #A94B2B #4AA92B #2B89A9
square
#8A2BA9 #A94B2B #4AA92B #2B89A9
split-complementary
#8A2BA9 #89A92B #2BA94B
monochromatic
#3A1247 #621F78 #8A2BA9 #AC42CF #C273DB
Accessibility & contrast
On white
7.00
#8A2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
3.00
#8A2BA9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2BA9
7.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2BA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2BA9 | 1.00 | 7.00 | 3.00 | 7.00 |
| #FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#2B5CA6
Tritanopia (blue-blind)
#884668
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8a2ba9; /* rgb */ color: rgb(138, 43, 169); /* oklch */ color: oklch(49.0% 0.198 316.3);
Tailwind
colors: {
custom: {
50: '#b06ec3',
500: '#8a2ba9',
950: '#000000',
},
}SCSS
$custom: #8a2ba9; $custom-light: #b06ec3; $custom-dark: #000000;
JSON
{
"hex": "#8a2ba9",
"rgb": {
"r": 138,
"g": 43,
"b": 169
},
"hsl": {
"h": 285.238,
"s": 59.434,
"l": 41.569
},
"oklch": {
"l": 0.48971,
"c": 0.19803,
"h": 316.3
},
"luminance": 0.09996
}Semantic roles & 50–950 ramp
primary
#8A2BA9
secondary
#82C36D
accent
#E3456C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82