#8A42C5#8A42C5
#8A42C5 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.197 H 306.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C5 |
|---|---|
| RGB | rgb(138, 66, 197) |
| HSL | hsl(273, 53%, 52%) |
| HSV | hsv(273, 66%, 77%) |
| CMYK | cmyk(29.9%, 66.5%, 0%, 22.7%) |
| CIE-LAB | lab(43.26, 53.91, -56.34) |
| CIE-LCH | lch(43.26, 77.97, 313.74°) |
| OKLab | oklab(53.44% 0.116 -0.1597) |
| OKLCH | oklch(53.44% 0.197 306) |
| XYZ | xyz(22.5053, 13.3311, 54.2001) |
| Luminance | 0.1333 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.23
Purply
#983FB2
ΔE00 4.76
Blueviolet
#8A2BE2
ΔE00 4.99
Royal Purple
#7851A9
ΔE00 6.28
Darkviolet
#9400D3
ΔE00 6.43
Violet (survey)
#9A0EEA
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C5 #7DC542
analogous
#4942C5 #8A42C5 #C542BF
triadic
#8A42C5 #C58A42 #42C58A
tetradic
#8A42C5 #C54942 #7DC542 #42BFC5
square
#8A42C5 #C54942 #7DC542 #42BFC5
split-complementary
#8A42C5 #BFC542 #42C549
monochromatic
#4A216C #6A2F9A #8A42C5 #A771D3 #C4A0E2
Accessibility & contrast
On white
5.73
#8A42C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.67
#8A42C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C5
5.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C5 | 1.00 | 5.73 | 3.67 | 5.73 |
| #FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#1E67C2
Tritanopia (blue-blind)
#805F7E
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c5; /* rgb */ color: rgb(138, 66, 197); /* oklch */ color: oklch(53.4% 0.197 306.0);
Tailwind
colors: {
custom: {
50: '#b17bd7',
500: '#8a42c5',
950: '#000000',
},
}SCSS
$custom: #8a42c5; $custom-light: #b17bd7; $custom-dark: #000000;
JSON
{
"hex": "#8a42c5",
"rgb": {
"r": 138,
"g": 66,
"b": 197
},
"hsl": {
"h": 272.977,
"s": 53.036,
"l": 51.569
},
"oklch": {
"l": 0.53444,
"c": 0.19737,
"h": 306
},
"luminance": 0.13331
}Semantic roles & 50–950 ramp
primary
#8A42C5
secondary
#AFCE95
accent
#DC4B8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83