#8A47BA#8A47BA
#8A47BA is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.179 H 308.4°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #8A47BA |
|---|---|
| RGB | rgb(138, 71, 186) |
| HSL | hsl(275, 45%, 50%) |
| HSV | hsv(275, 62%, 73%) |
| CMYK | cmyk(25.8%, 61.8%, 0%, 27.1%) |
| CIE-LAB | lab(43.44, 48.89, -49.63) |
| CIE-LCH | lch(43.44, 69.67, 314.57°) |
| OKLab | oklab(53.35% 0.1108 -0.14) |
| OKLCH | oklch(53.35% 0.179 308.4) |
| XYZ | xyz(21.5956, 13.4552, 47.9043) |
| Luminance | 0.1346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.65
Darkorchid
#9932CC
ΔE00 4.43
Royal Purple
#7851A9
ΔE00 4.87
Deep Lavender
#8D5EB7
ΔE00 6.32
Blueviolet
#8A2BE2
ΔE00 6.99
Medium Purple
#9E43A2
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A47BA #77BA47
analogous
#5047BA #8A47BA #BA47B0
triadic
#8A47BA #BA8A47 #47BA8A
tetradic
#8A47BA #BA5047 #77BA47 #47B0BA
square
#8A47BA #BA5047 #77BA47 #47B0BA
split-complementary
#8A47BA #B0BA47 #47BA50
monochromatic
#482562 #69358E #8A47BA #A674CB #C3A0DB
Accessibility & contrast
On white
5.69
#8A47BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#8A47BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A47BA
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A47BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A47BA | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E64BE
Deuteranopia (green-blind)
#3567B7
Tritanopia (blue-blind)
#835E7A
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a47ba; /* rgb */ color: rgb(138, 71, 186); /* oklch */ color: oklch(53.3% 0.179 308.4);
Tailwind
colors: {
custom: {
50: '#b07ecf',
500: '#8a47ba',
950: '#000000',
},
}SCSS
$custom: #8a47ba; $custom-light: #b07ecf; $custom-dark: #000000;
JSON
{
"hex": "#8a47ba",
"rgb": {
"r": 138,
"g": 71,
"b": 186
},
"hsl": {
"h": 274.957,
"s": 45.455,
"l": 50.392
},
"oklch": {
"l": 0.53347,
"c": 0.17858,
"h": 308.4
},
"luminance": 0.13455
}Semantic roles & 50–950 ramp
primary
#8A47BA
secondary
#AAC895
accent
#D55389
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82