#8A47B1#8A47B1
#8A47B1 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.169 H 311.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47B1 |
|---|---|
| RGB | rgb(138, 71, 177) |
| HSL | hsl(278, 43%, 49%) |
| HSV | hsv(278, 60%, 69%) |
| CMYK | cmyk(22%, 59.9%, 0%, 30.6%) |
| CIE-LAB | lab(42.89, 46.84, -45.23) |
| CIE-LCH | lch(42.89, 65.11, 316.00°) |
| OKLab | oklab(52.77% 0.1109 -0.1271) |
| OKLCH | oklch(52.77% 0.169 311.1) |
| XYZ | xyz(20.6688, 13.0845, 43.0232) |
| Luminance | 0.1308 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.98
Royal Purple
#7851A9
ΔE00 4.53
Darkorchid
#9932CC
ΔE00 5.31
Medium Purple
#9E43A2
ΔE00 5.82
Deep Lavender
#8D5EB7
ΔE00 6.31
Ugly Purple
#A442A0
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47B1 #6EB147
analogous
#5547B1 #8A47B1 #B147A3
triadic
#8A47B1 #B18A47 #47B18A
tetradic
#8A47B1 #B15547 #6EB147 #47A3B1
square
#8A47B1 #B15547 #6EB147 #47A3B1
split-complementary
#8A47B1 #A3B147 #47B155
monochromatic
#46245A #683585 #8A47B1 #A670C6 #C19BD7
Accessibility & contrast
On white
5.81
#8A47B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#8A47B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47B1
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47B1 | 1.00 | 5.81 | 3.62 | 5.81 |
| #FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2162B4
Deuteranopia (green-blind)
#3D67AE
Tritanopia (blue-blind)
#855B75
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a47b1; /* rgb */ color: rgb(138, 71, 177); /* oklch */ color: oklch(52.8% 0.169 311.1);
Tailwind
colors: {
custom: {
50: '#af7ec9',
500: '#8a47b1',
950: '#000000',
},
}SCSS
$custom: #8a47b1; $custom-light: #af7ec9; $custom-dark: #000000;
JSON
{
"hex": "#8a47b1",
"rgb": {
"r": 138,
"g": 71,
"b": 177
},
"hsl": {
"h": 277.925,
"s": 42.742,
"l": 48.627
},
"oklch": {
"l": 0.52769,
"c": 0.16872,
"h": 311.1
},
"luminance": 0.13084
}Semantic roles & 50–950 ramp
primary
#8A47B1
secondary
#A3C390
accent
#D35583
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82