#8A42CD#8A42CD
#8A42CD is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.206 H 304.0°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42CD |
|---|---|
| RGB | rgb(138, 66, 205) |
| HSL | hsl(271, 58%, 53%) |
| HSV | hsv(271, 68%, 80%) |
| CMYK | cmyk(32.7%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(43.81, 55.78, -60.07) |
| CIE-LCH | lch(43.81, 81.98, 312.88°) |
| OKLab | oklab(54.02% 0.1151 -0.1707) |
| OKLCH | oklch(54.02% 0.206 304) |
| XYZ | xyz(23.4464, 13.7075, 59.1564) |
| Luminance | 0.1371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.37
Blueviolet
#8A2BE2
ΔE00 4.21
Purply
#983FB2
ΔE00 5.77
Violet (survey)
#9A0EEA
ΔE00 5.82
Bluish Purple
#703BE7
ΔE00 5.92
Purpley
#8756E4
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42CD #85CD42
analogous
#4442CD #8A42CD #CD42CB
triadic
#8A42CD #CD8A42 #42CD8A
tetradic
#8A42CD #CD4442 #85CD42 #42CBCD
square
#8A42CD #CD4442 #85CD42 #42CBCD
split-complementary
#8A42CD #CBCD42 #42CD44
monochromatic
#4C1F76 #6B2CA6 #8A42CD #A872DA #C6A3E7
Accessibility & contrast
On white
5.61
#8A42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#8A42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42CD
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42CD | 1.00 | 5.61 | 3.74 | 5.61 |
| #FFFFFF | 5.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0467CA
Tritanopia (blue-blind)
#7D6282
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8a42cd; /* rgb */ color: rgb(138, 66, 205); /* oklch */ color: oklch(54.0% 0.206 304.0);
Tailwind
colors: {
custom: {
50: '#b17bdd',
500: '#8a42cd',
950: '#000000',
},
}SCSS
$custom: #8a42cd; $custom-light: #b17bdd; $custom-dark: #000000;
JSON
{
"hex": "#8a42cd",
"rgb": {
"r": 138,
"g": 66,
"b": 205
},
"hsl": {
"h": 271.079,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.54015,
"c": 0.20586,
"h": 304
},
"luminance": 0.13707
}Semantic roles & 50–950 ramp
primary
#8A42CD
secondary
#B4D397
accent
#E14691
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83