#8A47C2#8A47C2
#8A47C2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.9% C 0.187 H 306.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47C2 |
|---|---|
| RGB | rgb(138, 71, 194) |
| HSL | hsl(273, 50%, 52%) |
| HSV | hsv(273, 63%, 76%) |
| CMYK | cmyk(28.9%, 63.4%, 0%, 23.9%) |
| CIE-LAB | lab(43.95, 50.75, -53.47) |
| CIE-LCH | lch(43.95, 73.72, 313.50°) |
| OKLab | oklab(53.88% 0.1105 -0.1513) |
| OKLCH | oklch(53.88% 0.187 306.1) |
| XYZ | xyz(22.4700, 13.8050, 52.5094) |
| Luminance | 0.1381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.02
Purply
#983FB2
ΔE00 4.56
Royal Purple
#7851A9
ΔE00 5.50
Blueviolet
#8A2BE2
ΔE00 6.03
Deep Lavender
#8D5EB7
ΔE00 6.58
Purpley
#8756E4
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47C2 #7FC247
analogous
#4D47C2 #8A47C2 #C247BD
triadic
#8A47C2 #C28A47 #47C28A
tetradic
#8A47C2 #C24D47 #7FC247 #47BDC2
square
#8A47C2 #C24D47 #7FC247 #47BDC2
split-complementary
#8A47C2 #BDC247 #47C24D
monochromatic
#4B246B #6A3399 #8A47C2 #A775D1 #C4A3E0
Accessibility & contrast
On white
5.58
#8A47C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#8A47C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47C2
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47C2 | 1.00 | 5.58 | 3.76 | 5.58 |
| #FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2B68BF
Tritanopia (blue-blind)
#81617E
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8a47c2; /* rgb */ color: rgb(138, 71, 194); /* oklch */ color: oklch(53.9% 0.187 306.1);
Tailwind
colors: {
custom: {
50: '#b07ed5',
500: '#8a47c2',
950: '#000000',
},
}SCSS
$custom: #8a47c2; $custom-light: #b07ed5; $custom-dark: #000000;
JSON
{
"hex": "#8a47c2",
"rgb": {
"r": 138,
"g": 71,
"b": 194
},
"hsl": {
"h": 272.683,
"s": 50.204,
"l": 51.961
},
"oklch": {
"l": 0.5388,
"c": 0.18736,
"h": 306.1
},
"luminance": 0.13805
}Semantic roles & 50–950 ramp
primary
#8A47C2
secondary
#B0CD97
accent
#DA4E8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83