#8A42C4#8A42C4
#8A42C4 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.196 H 306.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C4 |
|---|---|
| RGB | rgb(138, 66, 196) |
| HSL | hsl(273, 52%, 51%) |
| HSV | hsv(273, 66%, 77%) |
| CMYK | cmyk(29.6%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(43.19, 53.67, -55.86) |
| CIE-LCH | lch(43.19, 77.47, 313.85°) |
| OKLab | oklab(53.37% 0.1161 -0.1583) |
| OKLCH | oklch(53.37% 0.196 306.2) |
| XYZ | xyz(22.3911, 13.2854, 53.5986) |
| Luminance | 0.1328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.25
Purply
#983FB2
ΔE00 4.63
Blueviolet
#8A2BE2
ΔE00 5.10
Royal Purple
#7851A9
ΔE00 6.20
Darkviolet
#9400D3
ΔE00 6.46
Violet (survey)
#9A0EEA
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C4 #7CC442
analogous
#4942C4 #8A42C4 #C442BD
triadic
#8A42C4 #C48A42 #42C48A
tetradic
#8A42C4 #C44942 #7CC442 #42BDC4
square
#8A42C4 #C44942 #7CC442 #42BDC4
split-complementary
#8A42C4 #BDC442 #42C449
monochromatic
#4A216A #6A3099 #8A42C4 #A771D3 #C49FE1
Accessibility & contrast
On white
5.74
#8A42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#8A42C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C4
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C4 | 1.00 | 5.74 | 3.66 | 5.74 |
| #FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#2066C1
Tritanopia (blue-blind)
#805E7D
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c4; /* rgb */ color: rgb(138, 66, 196); /* oklch */ color: oklch(53.4% 0.196 306.2);
Tailwind
colors: {
custom: {
50: '#b07bd7',
500: '#8a42c4',
950: '#000000',
},
}SCSS
$custom: #8a42c4; $custom-light: #b07bd7; $custom-dark: #000000;
JSON
{
"hex": "#8a42c4",
"rgb": {
"r": 138,
"g": 66,
"b": 196
},
"hsl": {
"h": 273.231,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.53374,
"c": 0.1963,
"h": 306.2
},
"luminance": 0.13285
}Semantic roles & 50–950 ramp
primary
#8A42C4
secondary
#AECE94
accent
#DC4C8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83