#8A46B6#8A46B6
#8A46B6 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.176 H 309.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #8A46B6 |
|---|---|
| RGB | rgb(138, 70, 182) |
| HSL | hsl(276, 44%, 49%) |
| HSV | hsv(276, 62%, 71%) |
| CMYK | cmyk(24.2%, 61.5%, 0%, 28.6%) |
| CIE-LAB | lab(43.01, 48.48, -47.98) |
| CIE-LCH | lch(43.01, 68.21, 315.30°) |
| OKLab | oklab(52.95% 0.1122 -0.1352) |
| OKLCH | oklch(52.95% 0.176 309.7) |
| XYZ | xyz(21.1133, 13.1614, 45.6751) |
| Luminance | 0.1316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.21
Darkorchid
#9932CC
ΔE00 4.63
Royal Purple
#7851A9
ΔE00 4.78
Medium Purple
#9E43A2
ΔE00 6.47
Deep Lavender
#8D5EB7
ΔE00 6.50
Barney
#AC1DB8
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A46B6 #72B646
analogous
#5246B6 #8A46B6 #B646AA
triadic
#8A46B6 #B68A46 #46B68A
tetradic
#8A46B6 #B65246 #72B646 #46AAB6
square
#8A46B6 #B65246 #72B646 #46AAB6
split-complementary
#8A46B6 #AAB646 #46B652
monochromatic
#47245E #68358A #8A46B6 #A671C8 #C29DD9
Accessibility & contrast
On white
5.78
#8A46B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#8A46B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A46B6
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A46B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A46B6 | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1563BA
Deuteranopia (green-blind)
#3867B3
Tritanopia (blue-blind)
#845C77
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a46b6; /* rgb */ color: rgb(138, 70, 182); /* oklch */ color: oklch(53.0% 0.176 309.7);
Tailwind
colors: {
custom: {
50: '#af7dcc',
500: '#8a46b6',
950: '#000000',
},
}SCSS
$custom: #8a46b6; $custom-light: #af7dcc; $custom-dark: #000000;
JSON
{
"hex": "#8a46b6",
"rgb": {
"r": 138,
"g": 70,
"b": 182
},
"hsl": {
"h": 276.429,
"s": 44.444,
"l": 49.412
},
"oklch": {
"l": 0.52951,
"c": 0.17567,
"h": 309.7
},
"luminance": 0.13161
}Semantic roles & 50–950 ramp
primary
#8A46B6
secondary
#A6C692
accent
#D45486
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82