#8A46B2#8A46B2
#8A46B2 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.171 H 310.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8A46B2 |
|---|---|
| RGB | rgb(138, 70, 178) |
| HSL | hsl(278, 44%, 49%) |
| HSV | hsv(278, 61%, 70%) |
| CMYK | cmyk(22.5%, 60.7%, 0%, 30.2%) |
| CIE-LAB | lab(42.76, 47.57, -46.02) |
| CIE-LCH | lch(42.76, 66.19, 315.95°) |
| OKLab | oklab(52.7% 0.1122 -0.1295) |
| OKLCH | oklch(52.7% 0.171 310.9) |
| XYZ | xyz(20.7058, 12.9984, 43.5290) |
| Luminance | 0.1300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.94
Royal Purple
#7851A9
ΔE00 4.67
Darkorchid
#9932CC
ΔE00 5.06
Medium Purple
#9E43A2
ΔE00 5.96
Deep Lavender
#8D5EB7
ΔE00 6.53
Barney
#AC1DB8
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A46B2 #6EB246
analogous
#5446B2 #8A46B2 #B246A4
triadic
#8A46B2 #B28A46 #46B28A
tetradic
#8A46B2 #B25446 #6EB246 #46A4B2
square
#8A46B2 #B25446 #6EB246 #46A4B2
split-complementary
#8A46B2 #A4B246 #46B254
monochromatic
#46235A #683586 #8A46B2 #A66FC6 #C19BD8
Accessibility & contrast
On white
5.83
#8A46B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8A46B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A46B2
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A46B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A46B2 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#3C66AF
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a46b2; /* rgb */ color: rgb(138, 70, 178); /* oklch */ color: oklch(52.7% 0.171 310.9);
Tailwind
colors: {
custom: {
50: '#af7dc9',
500: '#8a46b2',
950: '#000000',
},
}SCSS
$custom: #8a46b2; $custom-light: #af7dc9; $custom-dark: #000000;
JSON
{
"hex": "#8a46b2",
"rgb": {
"r": 138,
"g": 70,
"b": 178
},
"hsl": {
"h": 277.778,
"s": 43.548,
"l": 48.627
},
"oklch": {
"l": 0.52695,
"c": 0.17131,
"h": 310.9
},
"luminance": 0.12998
}Semantic roles & 50–950 ramp
primary
#8A46B2
secondary
#A3C490
accent
#D35583
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82