#8A42B3#8A42B3
#8A42B3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.178 H 311.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42B3 |
|---|---|
| RGB | rgb(138, 66, 179) |
| HSL | hsl(278, 46%, 48%) |
| HSV | hsv(278, 63%, 70%) |
| CMYK | cmyk(22.9%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(42.08, 49.80, -47.69) |
| CIE-LCH | lch(42.08, 68.96, 316.24°) |
| OKLab | oklab(52.22% 0.1171 -0.1343) |
| OKLCH | oklch(52.22% 0.178 311.1) |
| XYZ | xyz(20.5646, 12.5548, 43.9791) |
| Luminance | 0.1255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.87
Darkorchid
#9932CC
ΔE00 4.50
Royal Purple
#7851A9
ΔE00 5.26
Medium Purple
#9E43A2
ΔE00 6.20
Barney
#AC1DB8
ΔE00 6.73
Deep Lavender
#8D5EB7
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42B3 #6BB342
analogous
#5142B3 #8A42B3 #B342A3
triadic
#8A42B3 #B38A42 #42B38A
tetradic
#8A42B3 #B35142 #6BB342 #42A3B3
square
#8A42B3 #B35142 #6BB342 #42A3B3
split-complementary
#8A42B3 #A3B342 #42B351
monochromatic
#45215A #683286 #8A42B3 #A66AC8 #C197D9
Accessibility & contrast
On white
5.98
#8A42B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#8A42B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42B3
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42B3 | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C60B6
Deuteranopia (green-blind)
#3665B0
Tritanopia (blue-blind)
#855874
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a42b3; /* rgb */ color: rgb(138, 66, 179); /* oklch */ color: oklch(52.2% 0.178 311.1);
Tailwind
colors: {
custom: {
50: '#af7bca',
500: '#8a42b3',
950: '#000000',
},
}SCSS
$custom: #8a42b3; $custom-light: #af7bca; $custom-dark: #000000;
JSON
{
"hex": "#8a42b3",
"rgb": {
"r": 138,
"g": 66,
"b": 179
},
"hsl": {
"h": 278.23,
"s": 46.122,
"l": 48.039
},
"oklch": {
"l": 0.52224,
"c": 0.17824,
"h": 311.1
},
"luminance": 0.12554
}Semantic roles & 50–950 ramp
primary
#8A42B3
secondary
#A1C48C
accent
#D65282
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82