#8342C4#8342C4
#8342C4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.195 H 303.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8342C4 |
|---|---|
| RGB | rgb(131, 66, 196) |
| HSL | hsl(270, 52%, 51%) |
| HSV | hsv(270, 66%, 77%) |
| CMYK | cmyk(33.2%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(42.32, 52.19, -57.32) |
| CIE-LCH | lch(42.32, 77.51, 312.32°) |
| OKLab | oklab(52.56% 0.1067 -0.1628) |
| OKLCH | oklch(52.56% 0.195 303.2) |
| XYZ | xyz(21.2698, 12.7073, 53.5460) |
| Luminance | 0.1271 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.19
Blueviolet
#8A2BE2
ΔE00 4.89
Purply
#983FB2
ΔE00 5.73
Royal Purple
#7851A9
ΔE00 5.92
Bluey Purple
#6241C7
ΔE00 5.98
Bluish Purple
#703BE7
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8342C4 #83C442
analogous
#4242C4 #8342C4 #C442C4
triadic
#8342C4 #C48342 #42C483
tetradic
#8342C4 #C44242 #83C442 #42C4C4
square
#8342C4 #C44242 #83C442 #42C4C4
split-complementary
#8342C4 #C4C442 #42C442
monochromatic
#46216A #643099 #8342C4 #A271D3 #C09FE1
Accessibility & contrast
On white
5.93
#8342C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#8342C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8342C4
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8342C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8342C4 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0E64C1
Tritanopia (blue-blind)
#765F7D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8342c4; /* rgb */ color: rgb(131, 66, 196); /* oklch */ color: oklch(52.6% 0.195 303.2);
Tailwind
colors: {
custom: {
50: '#ac7bd7',
500: '#8342c4',
950: '#000000',
},
}SCSS
$custom: #8342c4; $custom-light: #ac7bd7; $custom-dark: #000000;
JSON
{
"hex": "#8342c4",
"rgb": {
"r": 131,
"g": 66,
"b": 196
},
"hsl": {
"h": 270,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.52557,
"c": 0.19466,
"h": 303.2
},
"luminance": 0.12707
}Semantic roles & 50–950 ramp
primary
#8342C4
secondary
#B1CE94
accent
#DC4C94
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83