#8A46C2#8A46C2
#8A46C2 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.7% C 0.189 H 306.3°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8A46C2 |
|---|---|
| RGB | rgb(138, 70, 194) |
| HSL | hsl(273, 50%, 52%) |
| HSV | hsv(273, 64%, 76%) |
| CMYK | cmyk(28.9%, 63.9%, 0%, 23.9%) |
| CIE-LAB | lab(43.77, 51.25, -53.77) |
| CIE-LCH | lch(43.77, 74.28, 313.63°) |
| OKLab | oklab(53.75% 0.1117 -0.1522) |
| OKLCH | oklch(53.75% 0.189 306.3) |
| XYZ | xyz(22.4069, 13.6788, 52.4883) |
| Luminance | 0.1368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.86
Purply
#983FB2
ΔE00 4.50
Royal Purple
#7851A9
ΔE00 5.60
Blueviolet
#8A2BE2
ΔE00 5.88
Deep Lavender
#8D5EB7
ΔE00 6.79
Purpley
#8756E4
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A46C2 #7EC246
analogous
#4C46C2 #8A46C2 #C246BC
triadic
#8A46C2 #C28A46 #46C28A
tetradic
#8A46C2 #C24C46 #7EC246 #46BCC2
square
#8A46C2 #C24C46 #7EC246 #46BCC2
split-complementary
#8A46C2 #BCC246 #46C24C
monochromatic
#4A236A #6A3299 #8A46C2 #A774D1 #C4A2E0
Accessibility & contrast
On white
5.62
#8A46C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#8A46C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A46C2
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A46C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A46C2 | 1.00 | 5.62 | 3.74 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#81607E
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a46c2; /* rgb */ color: rgb(138, 70, 194); /* oklch */ color: oklch(53.7% 0.189 306.3);
Tailwind
colors: {
custom: {
50: '#b07dd5',
500: '#8a46c2',
950: '#000000',
},
}SCSS
$custom: #8a46c2; $custom-light: #b07dd5; $custom-dark: #000000;
JSON
{
"hex": "#8a46c2",
"rgb": {
"r": 138,
"g": 70,
"b": 194
},
"hsl": {
"h": 272.903,
"s": 50.407,
"l": 51.765
},
"oklch": {
"l": 0.53748,
"c": 0.18875,
"h": 306.3
},
"luminance": 0.13679
}Semantic roles & 50–950 ramp
primary
#8A46C2
secondary
#AFCD97
accent
#DA4E8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83