#8342C5#8342C5
#8342C5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.196 H 303.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #8342C5 |
|---|---|
| RGB | rgb(131, 66, 197) |
| HSL | hsl(270, 53%, 52%) |
| HSV | hsv(270, 66%, 77%) |
| CMYK | cmyk(33.5%, 66.5%, 0%, 22.7%) |
| CIE-LAB | lab(42.39, 52.43, -57.78) |
| CIE-LCH | lch(42.39, 78.02, 312.22°) |
| OKLab | oklab(52.63% 0.1066 -0.1642) |
| OKLCH | oklch(52.63% 0.196 303) |
| XYZ | xyz(21.3840, 12.7529, 54.1475) |
| Luminance | 0.1275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.18
Blueviolet
#8A2BE2
ΔE00 4.78
Purply
#983FB2
ΔE00 5.83
Bluish Purple
#703BE7
ΔE00 5.89
Bluey Purple
#6241C7
ΔE00 5.94
Royal Purple
#7851A9
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8342C5 #84C542
analogous
#4243C5 #8342C5 #C442C5
triadic
#8342C5 #C58342 #42C583
tetradic
#8342C5 #C54243 #84C542 #42C5C4
square
#8342C5 #C54243 #84C542 #42C5C4
split-complementary
#8342C5 #C5C442 #43C542
monochromatic
#46216C #642F9A #8342C5 #A271D3 #C0A0E2
Accessibility & contrast
On white
5.91
#8342C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#8342C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8342C5
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8342C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8342C5 | 1.00 | 5.91 | 3.55 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0A64C2
Tritanopia (blue-blind)
#765F7E
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8342c5; /* rgb */ color: rgb(131, 66, 197); /* oklch */ color: oklch(52.6% 0.196 303.0);
Tailwind
colors: {
custom: {
50: '#ac7bd7',
500: '#8342c5',
950: '#000000',
},
}SCSS
$custom: #8342c5; $custom-light: #ac7bd7; $custom-dark: #000000;
JSON
{
"hex": "#8342c5",
"rgb": {
"r": 131,
"g": 66,
"b": 197
},
"hsl": {
"h": 269.771,
"s": 53.036,
"l": 51.569
},
"oklch": {
"l": 0.5263,
"c": 0.19575,
"h": 303
},
"luminance": 0.12753
}Semantic roles & 50–950 ramp
primary
#8342C5
secondary
#B2CE95
accent
#DC4B94
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83