#8342CD#8342CD
#8342CD is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.204 H 301.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8342CD |
|---|---|
| RGB | rgb(131, 66, 205) |
| HSL | hsl(268, 58%, 53%) |
| HSV | hsv(268, 68%, 80%) |
| CMYK | cmyk(36.1%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(42.96, 54.37, -61.50) |
| CIE-LCH | lch(42.96, 82.09, 311.48°) |
| OKLab | oklab(53.22% 0.1056 -0.1751) |
| OKLCH | oklch(53.22% 0.204 301.1) |
| XYZ | xyz(22.3251, 13.1294, 59.1038) |
| Luminance | 0.1313 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.04
Darkorchid
#9932CC
ΔE00 4.33
Bluish Purple
#703BE7
ΔE00 4.92
Bluey Purple
#6241C7
ΔE00 5.75
Violet (survey)
#9A0EEA
ΔE00 6.13
Burple
#6832E3
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8342CD #8CCD42
analogous
#4246CD #8342CD #C942CD
triadic
#8342CD #CD8342 #42CD83
tetradic
#8342CD #CD4246 #8CCD42 #42CDC9
square
#8342CD #CD4246 #8CCD42 #42CDC9
split-complementary
#8342CD #CDC942 #46CD42
monochromatic
#481F76 #652CA6 #8342CD #A372DA #C3A3E7
Accessibility & contrast
On white
5.79
#8342CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#8342CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8342CD
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8342CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8342CD | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#736282
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8342cd; /* rgb */ color: rgb(131, 66, 205); /* oklch */ color: oklch(53.2% 0.204 301.1);
Tailwind
colors: {
custom: {
50: '#ad7bdd',
500: '#8342cd',
950: '#000000',
},
}SCSS
$custom: #8342cd; $custom-light: #ad7bdd; $custom-dark: #000000;
JSON
{
"hex": "#8342cd",
"rgb": {
"r": 131,
"g": 66,
"b": 205
},
"hsl": {
"h": 268.058,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.53217,
"c": 0.20448,
"h": 301.1
},
"luminance": 0.1313
}Semantic roles & 50–950 ramp
primary
#8342CD
secondary
#B7D397
accent
#E14699
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83