#8A47B3#8A47B3
#8A47B3 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.9% C 0.171 H 310.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47B3 |
|---|---|
| RGB | rgb(138, 71, 179) |
| HSL | hsl(277, 43%, 49%) |
| HSV | hsv(277, 60%, 70%) |
| CMYK | cmyk(22.9%, 60.3%, 0%, 29.8%) |
| CIE-LAB | lab(43.01, 47.29, -46.21) |
| CIE-LCH | lch(43.01, 66.12, 315.66°) |
| OKLab | oklab(52.9% 0.1109 -0.13) |
| OKLCH | oklch(52.9% 0.171 310.5) |
| XYZ | xyz(20.8696, 13.1648, 44.0808) |
| Luminance | 0.1316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.07
Royal Purple
#7851A9
ΔE00 4.56
Darkorchid
#9932CC
ΔE00 5.08
Medium Purple
#9E43A2
ΔE00 6.08
Deep Lavender
#8D5EB7
ΔE00 6.28
Barney
#AC1DB8
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47B3 #70B347
analogous
#5447B3 #8A47B3 #B347A6
triadic
#8A47B3 #B38A47 #47B38A
tetradic
#8A47B3 #B35447 #70B347 #47A6B3
square
#8A47B3 #B35447 #70B347 #47A6B3
split-complementary
#8A47B3 #A6B347 #47B354
monochromatic
#46245B #683687 #8A47B3 #A671C7 #C19CD8
Accessibility & contrast
On white
5.78
#8A47B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#8A47B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47B3
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47B3 | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E62B6
Deuteranopia (green-blind)
#3C67B0
Tritanopia (blue-blind)
#855B76
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a47b3; /* rgb */ color: rgb(138, 71, 179); /* oklch */ color: oklch(52.9% 0.171 310.5);
Tailwind
colors: {
custom: {
50: '#af7eca',
500: '#8a47b3',
950: '#000000',
},
}SCSS
$custom: #8a47b3; $custom-light: #af7eca; $custom-dark: #000000;
JSON
{
"hex": "#8a47b3",
"rgb": {
"r": 138,
"g": 71,
"b": 179
},
"hsl": {
"h": 277.222,
"s": 43.2,
"l": 49.02
},
"oklch": {
"l": 0.52896,
"c": 0.1709,
"h": 310.5
},
"luminance": 0.13164
}Semantic roles & 50–950 ramp
primary
#8A47B3
secondary
#A5C491
accent
#D35585
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82