#8A46B5#8A46B5
#8A46B5 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.175 H 310.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8A46B5 |
|---|---|
| RGB | rgb(138, 70, 181) |
| HSL | hsl(277, 44%, 49%) |
| HSV | hsv(277, 61%, 71%) |
| CMYK | cmyk(23.8%, 61.3%, 0%, 29%) |
| CIE-LAB | lab(42.94, 48.25, -47.49) |
| CIE-LCH | lch(42.94, 67.71, 315.45°) |
| OKLab | oklab(52.89% 0.1122 -0.1338) |
| OKLCH | oklch(52.89% 0.175 310) |
| XYZ | xyz(21.0103, 13.1202, 45.1327) |
| Luminance | 0.1312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.13
Darkorchid
#9932CC
ΔE00 4.73
Royal Purple
#7851A9
ΔE00 4.74
Medium Purple
#9E43A2
ΔE00 6.34
Deep Lavender
#8D5EB7
ΔE00 6.50
Barney
#AC1DB8
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A46B5 #71B546
analogous
#5346B5 #8A46B5 #B546A9
triadic
#8A46B5 #B58A46 #46B58A
tetradic
#8A46B5 #B55346 #71B546 #46A9B5
square
#8A46B5 #B55346 #71B546 #46A9B5
split-complementary
#8A46B5 #A9B546 #46B553
monochromatic
#47245D #683589 #8A46B5 #A670C8 #C29CD9
Accessibility & contrast
On white
5.79
#8A46B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#8A46B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A46B5
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A46B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A46B5 | 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)
#1762B8
Deuteranopia (green-blind)
#3967B2
Tritanopia (blue-blind)
#845B77
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a46b5; /* rgb */ color: rgb(138, 70, 181); /* oklch */ color: oklch(52.9% 0.175 310.0);
Tailwind
colors: {
custom: {
50: '#af7dcc',
500: '#8a46b5',
950: '#000000',
},
}SCSS
$custom: #8a46b5; $custom-light: #af7dcc; $custom-dark: #000000;
JSON
{
"hex": "#8a46b5",
"rgb": {
"r": 138,
"g": 70,
"b": 181
},
"hsl": {
"h": 276.757,
"s": 44.223,
"l": 49.216
},
"oklch": {
"l": 0.52886,
"c": 0.17458,
"h": 310
},
"luminance": 0.1312
}Semantic roles & 50–950 ramp
primary
#8A46B5
secondary
#A6C592
accent
#D45485
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82