#8A47B4#8A47B4
#8A47B4 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.172 H 310.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47B4 |
|---|---|
| RGB | rgb(138, 71, 180) |
| HSL | hsl(277, 43%, 49%) |
| HSV | hsv(277, 61%, 71%) |
| CMYK | cmyk(23.3%, 60.6%, 0%, 29.4%) |
| CIE-LAB | lab(43.07, 47.52, -46.70) |
| CIE-LCH | lch(43.07, 66.63, 315.49°) |
| OKLab | oklab(52.96% 0.1109 -0.1315) |
| OKLCH | oklch(52.96% 0.172 310.2) |
| XYZ | xyz(20.9711, 13.2054, 44.6153) |
| Luminance | 0.1321 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.14
Royal Purple
#7851A9
ΔE00 4.58
Darkorchid
#9932CC
ΔE00 4.97
Medium Purple
#9E43A2
ΔE00 6.21
Deep Lavender
#8D5EB7
ΔE00 6.27
Barney
#AC1DB8
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47B4 #71B447
analogous
#5447B4 #8A47B4 #B447A8
triadic
#8A47B4 #B48A47 #47B48A
tetradic
#8A47B4 #B45447 #71B447 #47A8B4
square
#8A47B4 #B45447 #71B447 #47A8B4
split-complementary
#8A47B4 #A8B447 #47B454
monochromatic
#47245C #683688 #8A47B4 #A671C7 #C29DD8
Accessibility & contrast
On white
5.77
#8A47B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#8A47B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47B4
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47B4 | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C63B7
Deuteranopia (green-blind)
#3B67B1
Tritanopia (blue-blind)
#855C77
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a47b4; /* rgb */ color: rgb(138, 71, 180); /* oklch */ color: oklch(53.0% 0.172 310.2);
Tailwind
colors: {
custom: {
50: '#af7ecb',
500: '#8a47b4',
950: '#000000',
},
}SCSS
$custom: #8a47b4; $custom-light: #af7ecb; $custom-dark: #000000;
JSON
{
"hex": "#8a47b4",
"rgb": {
"r": 138,
"g": 71,
"b": 180
},
"hsl": {
"h": 276.881,
"s": 43.426,
"l": 49.216
},
"oklch": {
"l": 0.52959,
"c": 0.172,
"h": 310.2
},
"luminance": 0.13205
}Semantic roles & 50–950 ramp
primary
#8A47B4
secondary
#A6C592
accent
#D35585
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82