#8A46B1#8A46B1
#8A46B1 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.170 H 311.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #8A46B1 |
|---|---|
| RGB | rgb(138, 70, 177) |
| HSL | hsl(278, 43%, 48%) |
| HSV | hsv(278, 60%, 69%) |
| CMYK | cmyk(22%, 60.5%, 0%, 30.6%) |
| CIE-LAB | lab(42.70, 47.35, -45.53) |
| CIE-LCH | lch(42.70, 65.69, 316.12°) |
| OKLab | oklab(52.63% 0.1122 -0.128) |
| OKLCH | oklch(52.63% 0.17 311.2) |
| XYZ | xyz(20.6057, 12.9584, 43.0022) |
| Luminance | 0.1296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.90
Royal Purple
#7851A9
ΔE00 4.66
Darkorchid
#9932CC
ΔE00 5.18
Medium Purple
#9E43A2
ΔE00 5.83
Deep Lavender
#8D5EB7
ΔE00 6.54
Barney
#AC1DB8
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A46B1 #6DB146
analogous
#5446B1 #8A46B1 #B146A2
triadic
#8A46B1 #B18A46 #46B18A
tetradic
#8A46B1 #B15446 #6DB146 #46A2B1
square
#8A46B1 #B15446 #6DB146 #46A2B1
split-complementary
#8A46B1 #A2B146 #46B154
monochromatic
#462359 #683585 #8A46B1 #A66EC6 #C19AD7
Accessibility & contrast
On white
5.85
#8A46B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#8A46B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A46B1
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A46B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A46B1 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E62B4
Deuteranopia (green-blind)
#3C66AE
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a46b1; /* rgb */ color: rgb(138, 70, 177); /* oklch */ color: oklch(52.6% 0.170 311.2);
Tailwind
colors: {
custom: {
50: '#af7dc9',
500: '#8a46b1',
950: '#000000',
},
}SCSS
$custom: #8a46b1; $custom-light: #af7dc9; $custom-dark: #000000;
JSON
{
"hex": "#8a46b1",
"rgb": {
"r": 138,
"g": 70,
"b": 177
},
"hsl": {
"h": 278.131,
"s": 43.32,
"l": 48.431
},
"oklch": {
"l": 0.52631,
"c": 0.17022,
"h": 311.2
},
"luminance": 0.12958
}Semantic roles & 50–950 ramp
primary
#8A46B1
secondary
#A2C38F
accent
#D35583
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82