#8A42B6#8A42B6
#8A42B6 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.181 H 310.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42B6 |
|---|---|
| RGB | rgb(138, 66, 182) |
| HSL | hsl(277, 47%, 49%) |
| HSV | hsv(277, 64%, 71%) |
| CMYK | cmyk(24.2%, 63.7%, 0%, 28.6%) |
| CIE-LAB | lab(42.27, 50.47, -49.16) |
| CIE-LCH | lch(42.27, 70.46, 315.76°) |
| OKLab | oklab(52.42% 0.117 -0.1386) |
| OKLCH | oklch(52.42% 0.181 310.2) |
| XYZ | xyz(20.8713, 12.6775, 45.5944) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.09
Darkorchid
#9932CC
ΔE00 4.16
Royal Purple
#7851A9
ΔE00 5.33
Medium Purple
#9E43A2
ΔE00 6.58
Barney
#AC1DB8
ΔE00 6.82
Blueviolet
#8A2BE2
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42B6 #6EB642
analogous
#5042B6 #8A42B6 #B642A8
triadic
#8A42B6 #B68A42 #42B68A
tetradic
#8A42B6 #B65042 #6EB642 #42A8B6
square
#8A42B6 #B65042 #6EB642 #42A8B6
split-complementary
#8A42B6 #A8B642 #42B650
monochromatic
#46215C #683289 #8A42B6 #A66CCA #C199DA
Accessibility & contrast
On white
5.94
#8A42B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#8A42B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42B6
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42B6 | 1.00 | 5.94 | 3.54 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0161BA
Deuteranopia (green-blind)
#3365B3
Tritanopia (blue-blind)
#845976
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a42b6; /* rgb */ color: rgb(138, 66, 182); /* oklch */ color: oklch(52.4% 0.181 310.2);
Tailwind
colors: {
custom: {
50: '#b07bcc',
500: '#8a42b6',
950: '#000000',
},
}SCSS
$custom: #8a42b6; $custom-light: #b07bcc; $custom-dark: #000000;
JSON
{
"hex": "#8a42b6",
"rgb": {
"r": 138,
"g": 66,
"b": 182
},
"hsl": {
"h": 277.241,
"s": 46.774,
"l": 48.627
},
"oklch": {
"l": 0.5242,
"c": 0.18142,
"h": 310.2
},
"luminance": 0.12677
}Semantic roles & 50–950 ramp
primary
#8A42B6
secondary
#A3C68E
accent
#D65184
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82