#8A47B2#8A47B2
#8A47B2 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.170 H 310.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47B2 |
|---|---|
| RGB | rgb(138, 71, 178) |
| HSL | hsl(278, 43%, 49%) |
| HSV | hsv(278, 60%, 70%) |
| CMYK | cmyk(22.5%, 60.1%, 0%, 30.2%) |
| CIE-LAB | lab(42.95, 47.06, -45.72) |
| CIE-LCH | lch(42.95, 65.61, 315.83°) |
| OKLab | oklab(52.83% 0.1109 -0.1286) |
| OKLCH | oklch(52.83% 0.17 310.8) |
| XYZ | xyz(20.7689, 13.1245, 43.5501) |
| Luminance | 0.1312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.02
Royal Purple
#7851A9
ΔE00 4.54
Darkorchid
#9932CC
ΔE00 5.19
Medium Purple
#9E43A2
ΔE00 5.95
Deep Lavender
#8D5EB7
ΔE00 6.29
Barney
#AC1DB8
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47B2 #6FB247
analogous
#5547B2 #8A47B2 #B247A5
triadic
#8A47B2 #B28A47 #47B28A
tetradic
#8A47B2 #B25547 #6FB247 #47A5B2
square
#8A47B2 #B25547 #6FB247 #47A5B2
split-complementary
#8A47B2 #A5B247 #47B255
monochromatic
#46245B #683686 #8A47B2 #A670C6 #C19CD7
Accessibility & contrast
On white
5.79
#8A47B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#8A47B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47B2
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47B2 | 1.00 | 5.79 | 3.62 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#855B76
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a47b2; /* rgb */ color: rgb(138, 71, 178); /* oklch */ color: oklch(52.8% 0.170 310.8);
Tailwind
colors: {
custom: {
50: '#af7ec9',
500: '#8a47b2',
950: '#000000',
},
}SCSS
$custom: #8a47b2; $custom-light: #af7ec9; $custom-dark: #000000;
JSON
{
"hex": "#8a47b2",
"rgb": {
"r": 138,
"g": 71,
"b": 178
},
"hsl": {
"h": 277.57,
"s": 42.972,
"l": 48.824
},
"oklch": {
"l": 0.52832,
"c": 0.16981,
"h": 310.8
},
"luminance": 0.13124
}Semantic roles & 50–950 ramp
primary
#8A47B2
secondary
#A4C491
accent
#D35584
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82