#8A2BA7#8A2BA7
#8A2BA7 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.196 H 317.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2BA7 |
|---|---|
| RGB | rgb(138, 43, 167) |
| HSL | hsl(286, 59%, 41%) |
| HSV | hsv(286, 74%, 65%) |
| CMYK | cmyk(17.4%, 74.3%, 0%, 34.5%) |
| CIE-LAB | lab(37.70, 57.35, -47.60) |
| CIE-LCH | lch(37.70, 74.53, 320.30°) |
| OKLab | oklab(48.83% 0.1434 -0.1339) |
| OKLCH | oklch(48.83% 0.196 317) |
| XYZ | xyz(18.3191, 9.9218, 37.5019) |
| Luminance | 0.0992 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.49
Purply
#983FB2
ΔE00 5.17
Barney Purple
#A00498
ΔE00 5.77
Warm Purple
#952E8F
ΔE00 5.92
Barney
#AC1DB8
ΔE00 6.07
Darkmagenta
#8B008B
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2BA7 #48A72B
analogous
#4C2BA7 #8A2BA7 #A72B86
triadic
#8A2BA7 #A78A2B #2BA78A
tetradic
#8A2BA7 #A74C2B #48A72B #2B86A7
square
#8A2BA7 #A74C2B #48A72B #2B86A7
split-complementary
#8A2BA7 #86A72B #2BA74C
monochromatic
#3A1246 #621E76 #8A2BA7 #AD41CE #C272DB
Accessibility & contrast
On white
7.04
#8A2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#8A2BA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2BA7
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2BA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2BA7 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#2D5BA4
Tritanopia (blue-blind)
#884567
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8a2ba7; /* rgb */ color: rgb(138, 43, 167); /* oklch */ color: oklch(48.8% 0.196 317.0);
Tailwind
colors: {
custom: {
50: '#b06ec2',
500: '#8a2ba7',
950: '#000000',
},
}SCSS
$custom: #8a2ba7; $custom-light: #b06ec2; $custom-dark: #000000;
JSON
{
"hex": "#8a2ba7",
"rgb": {
"r": 138,
"g": 43,
"b": 167
},
"hsl": {
"h": 285.968,
"s": 59.048,
"l": 41.176
},
"oklch": {
"l": 0.48833,
"c": 0.19623,
"h": 317
},
"luminance": 0.09921
}Semantic roles & 50–950 ramp
primary
#8A2BA7
secondary
#80C26C
accent
#E2466A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81