#8D40C4#8D40C4
#8D40C4 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.5% C 0.200 H 307.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).
Color values
| HEX | #8D40C4 |
|---|---|
| RGB | rgb(141, 64, 196) |
| HSL | hsl(275, 53%, 51%) |
| HSV | hsv(275, 67%, 77%) |
| CMYK | cmyk(28.1%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(43.23, 55.26, -55.77) |
| CIE-LCH | lch(43.23, 78.51, 314.73°) |
| OKLab | oklab(53.49% 0.1222 -0.1579) |
| OKLCH | oklch(53.49% 0.2 307.7) |
| XYZ | xyz(22.7796, 13.3154, 53.5839) |
| Luminance | 0.1331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.68
Purply
#983FB2
ΔE00 4.20
Blueviolet
#8A2BE2
ΔE00 5.06
Darkviolet
#9400D3
ΔE00 6.12
Violet (survey)
#9A0EEA
ΔE00 6.27
Vibrant Purple
#AD03DE
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D40C4 #77C440
analogous
#4B40C4 #8D40C4 #C440B9
triadic
#8D40C4 #C48D40 #40C48D
tetradic
#8D40C4 #C44B40 #77C440 #40B9C4
square
#8D40C4 #C44B40 #77C440 #40B9C4
split-complementary
#8D40C4 #B9C440 #40C44B
monochromatic
#4B2069 #6C2F98 #8D40C4 #A96FD2 #C59EE1
Accessibility & contrast
On white
5.73
#8D40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#8D40C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D40C4
5.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D40C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D40C4 | 1.00 | 5.73 | 3.66 | 5.73 |
| #FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#2267C1
Tritanopia (blue-blind)
#845D7D
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8d40c4; /* rgb */ color: rgb(141, 64, 196); /* oklch */ color: oklch(53.5% 0.200 307.7);
Tailwind
colors: {
custom: {
50: '#b37ad7',
500: '#8d40c4',
950: '#000000',
},
}SCSS
$custom: #8d40c4; $custom-light: #b37ad7; $custom-dark: #000000;
JSON
{
"hex": "#8d40c4",
"rgb": {
"r": 141,
"g": 64,
"b": 196
},
"hsl": {
"h": 275,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.53488,
"c": 0.19973,
"h": 307.7
},
"luminance": 0.13315
}Semantic roles & 50–950 ramp
primary
#8D40C4
secondary
#ABCD93
accent
#DC4C88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83