#8A42B4#8A42B4
#8A42B4 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.179 H 310.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42B4 |
|---|---|
| RGB | rgb(138, 66, 180) |
| HSL | hsl(278, 46%, 48%) |
| HSV | hsv(278, 63%, 71%) |
| CMYK | cmyk(23.3%, 63.3%, 0%, 29.4%) |
| CIE-LAB | lab(42.15, 50.03, -48.18) |
| CIE-LCH | lch(42.15, 69.46, 316.08°) |
| OKLab | oklab(52.29% 0.1171 -0.1358) |
| OKLCH | oklch(52.29% 0.179 310.8) |
| XYZ | xyz(20.6661, 12.5954, 44.5137) |
| Luminance | 0.1260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.93
Darkorchid
#9932CC
ΔE00 4.38
Royal Purple
#7851A9
ΔE00 5.28
Medium Purple
#9E43A2
ΔE00 6.33
Barney
#AC1DB8
ΔE00 6.76
Blueviolet
#8A2BE2
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42B4 #6CB442
analogous
#5142B4 #8A42B4 #B442A5
triadic
#8A42B4 #B48A42 #42B48A
tetradic
#8A42B4 #B45142 #6CB442 #42A5B4
square
#8A42B4 #B45142 #6CB442 #42A5B4
split-complementary
#8A42B4 #A5B442 #42B451
monochromatic
#45215A #683287 #8A42B4 #A66BC9 #C197D9
Accessibility & contrast
On white
5.97
#8A42B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#8A42B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42B4
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42B4 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0860B8
Deuteranopia (green-blind)
#3565B1
Tritanopia (blue-blind)
#855875
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a42b4; /* rgb */ color: rgb(138, 66, 180); /* oklch */ color: oklch(52.3% 0.179 310.8);
Tailwind
colors: {
custom: {
50: '#af7bcb',
500: '#8a42b4',
950: '#000000',
},
}SCSS
$custom: #8a42b4; $custom-light: #af7bcb; $custom-dark: #000000;
JSON
{
"hex": "#8a42b4",
"rgb": {
"r": 138,
"g": 66,
"b": 180
},
"hsl": {
"h": 277.895,
"s": 46.341,
"l": 48.235
},
"oklch": {
"l": 0.52289,
"c": 0.1793,
"h": 310.8
},
"luminance": 0.12595
}Semantic roles & 50–950 ramp
primary
#8A42B4
secondary
#A2C58D
accent
#D65283
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82