#8A47B5#8A47B5
#8A47B5 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.173 H 309.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47B5 |
|---|---|
| RGB | rgb(138, 71, 181) |
| HSL | hsl(277, 44%, 49%) |
| HSV | hsv(277, 61%, 71%) |
| CMYK | cmyk(23.8%, 60.8%, 0%, 29%) |
| CIE-LAB | lab(43.13, 47.74, -47.19) |
| CIE-LCH | lch(43.13, 67.13, 315.33°) |
| OKLab | oklab(53.02% 0.1109 -0.1329) |
| OKLCH | oklch(53.02% 0.173 309.8) |
| XYZ | xyz(21.0734, 13.2463, 45.1538) |
| Luminance | 0.1325 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.21
Royal Purple
#7851A9
ΔE00 4.62
Darkorchid
#9932CC
ΔE00 4.87
Deep Lavender
#8D5EB7
ΔE00 6.27
Medium Purple
#9E43A2
ΔE00 6.34
Barney
#AC1DB8
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47B5 #72B547
analogous
#5347B5 #8A47B5 #B547A9
triadic
#8A47B5 #B58A47 #47B58A
tetradic
#8A47B5 #B55347 #72B547 #47A9B5
square
#8A47B5 #B55347 #72B547 #47A9B5
split-complementary
#8A47B5 #A9B547 #47B553
monochromatic
#47255D #683689 #8A47B5 #A672C8 #C29ED9
Accessibility & contrast
On white
5.75
#8A47B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#8A47B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47B5
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47B5 | 1.00 | 5.75 | 3.65 | 5.75 |
| #FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A63B8
Deuteranopia (green-blind)
#3A67B2
Tritanopia (blue-blind)
#845C77
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a47b5; /* rgb */ color: rgb(138, 71, 181); /* oklch */ color: oklch(53.0% 0.173 309.8);
Tailwind
colors: {
custom: {
50: '#af7ecc',
500: '#8a47b5',
950: '#000000',
},
}SCSS
$custom: #8a47b5; $custom-light: #af7ecc; $custom-dark: #000000;
JSON
{
"hex": "#8a47b5",
"rgb": {
"r": 138,
"g": 71,
"b": 181
},
"hsl": {
"h": 276.545,
"s": 43.651,
"l": 49.412
},
"oklch": {
"l": 0.53023,
"c": 0.1731,
"h": 309.8
},
"luminance": 0.13246
}Semantic roles & 50–950 ramp
primary
#8A47B5
secondary
#A6C593
accent
#D35486
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82