#8D42C4#8D42C4
#8D42C4 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.7% C 0.197 H 307.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).
Color values
| HEX | #8D42C4 |
|---|---|
| RGB | rgb(141, 66, 196) |
| HSL | hsl(275, 52%, 51%) |
| HSV | hsv(275, 66%, 77%) |
| CMYK | cmyk(28.1%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(43.57, 54.32, -55.23) |
| CIE-LCH | lch(43.57, 77.46, 314.52°) |
| OKLab | oklab(53.73% 0.12 -0.1563) |
| OKLCH | oklch(53.73% 0.197 307.5) |
| XYZ | xyz(22.8944, 13.5450, 53.6222) |
| Luminance | 0.1354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.94
Purply
#983FB2
ΔE00 4.20
Blueviolet
#8A2BE2
ΔE00 5.30
Royal Purple
#7851A9
ΔE00 6.40
Darkviolet
#9400D3
ΔE00 6.51
Violet (survey)
#9A0EEA
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D42C4 #79C442
analogous
#4C42C4 #8D42C4 #C442BA
triadic
#8D42C4 #C48D42 #42C48D
tetradic
#8D42C4 #C44C42 #79C442 #42BAC4
square
#8D42C4 #C44C42 #79C442 #42BAC4
split-complementary
#8D42C4 #BAC442 #42C44C
monochromatic
#4B216A #6C3099 #8D42C4 #A971D3 #C59FE1
Accessibility & contrast
On white
5.66
#8D42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.71
#8D42C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D42C4
5.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D42C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D42C4 | 1.00 | 5.66 | 3.71 | 5.66 |
| #FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#2568C1
Tritanopia (blue-blind)
#845E7D
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8d42c4; /* rgb */ color: rgb(141, 66, 196); /* oklch */ color: oklch(53.7% 0.197 307.5);
Tailwind
colors: {
custom: {
50: '#b37bd7',
500: '#8d42c4',
950: '#000000',
},
}SCSS
$custom: #8d42c4; $custom-light: #b37bd7; $custom-dark: #000000;
JSON
{
"hex": "#8d42c4",
"rgb": {
"r": 141,
"g": 66,
"b": 196
},
"hsl": {
"h": 274.615,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.53731,
"c": 0.19711,
"h": 307.5
},
"luminance": 0.13545
}Semantic roles & 50–950 ramp
primary
#8D42C4
secondary
#ACCE94
accent
#DC4C89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83