#8A3AB2#8A3AB2
#8A3AB2 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.2% C 0.188 H 312.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3AB2 |
|---|---|
| RGB | rgb(138, 58, 178) |
| HSL | hsl(280, 51%, 46%) |
| HSV | hsv(280, 67%, 70%) |
| CMYK | cmyk(22.5%, 67.4%, 0%, 30.2%) |
| CIE-LAB | lab(40.65, 53.38, -49.41) |
| CIE-LCH | lch(40.65, 72.74, 317.21°) |
| OKLab | oklab(51.17% 0.1266 -0.1393) |
| OKLCH | oklch(51.17% 0.188 312.3) |
| XYZ | xyz(20.0287, 11.6443, 43.3033) |
| Luminance | 0.1164 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.28
Darkorchid
#9932CC
ΔE00 4.23
Barney
#AC1DB8
ΔE00 6.12
Darkviolet
#9400D3
ΔE00 6.31
Purple (survey)
#7E1E9C
ΔE00 6.33
Royal Purple
#7851A9
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3AB2 #62B23A
analogous
#4E3AB2 #8A3AB2 #B23A9E
triadic
#8A3AB2 #B28A3A #3AB28A
tetradic
#8A3AB2 #B24E3A #62B23A #3A9EB2
square
#8A3AB2 #B24E3A #62B23A #3A9EB2
split-complementary
#8A3AB2 #9EB23A #3AB24E
monochromatic
#421C56 #662B84 #8A3AB2 #A75FCB #C08DDA
Accessibility & contrast
On white
6.31
#8A3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#8A3AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3AB2
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3AB2 | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#2F61AF
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a3ab2; /* rgb */ color: rgb(138, 58, 178); /* oklch */ color: oklch(51.2% 0.188 312.3);
Tailwind
colors: {
custom: {
50: '#b076ca',
500: '#8a3ab2',
950: '#000000',
},
}SCSS
$custom: #8a3ab2; $custom-light: #b076ca; $custom-dark: #000000;
JSON
{
"hex": "#8a3ab2",
"rgb": {
"r": 138,
"g": 58,
"b": 178
},
"hsl": {
"h": 280,
"s": 50.847,
"l": 46.275
},
"oklch": {
"l": 0.51166,
"c": 0.18826,
"h": 312.3
},
"luminance": 0.11644
}Semantic roles & 50–950 ramp
primary
#8A3AB2
secondary
#99C483
accent
#DA4D7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82