#8D40C1#8D40C1
#8D40C1 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.197 H 308.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #8D40C1 |
|---|---|
| RGB | rgb(141, 64, 193) |
| HSL | hsl(276, 51%, 50%) |
| HSV | hsv(276, 67%, 76%) |
| CMYK | cmyk(26.9%, 66.8%, 0%, 24.3%) |
| CIE-LAB | lab(43.03, 54.58, -54.35) |
| CIE-LCH | lch(43.03, 77.03, 315.12°) |
| OKLab | oklab(53.28% 0.1225 -0.1538) |
| OKLCH | oklch(53.28% 0.197 308.5) |
| XYZ | xyz(22.4416, 13.1801, 51.8035) |
| Luminance | 0.1318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.81
Purply
#983FB2
ΔE00 3.80
Blueviolet
#8A2BE2
ΔE00 5.43
Darkviolet
#9400D3
ΔE00 6.23
Royal Purple
#7851A9
ΔE00 6.40
Vibrant Purple
#AD03DE
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D40C1 #74C140
analogous
#4C40C1 #8D40C1 #C140B4
triadic
#8D40C1 #C18D40 #40C18D
tetradic
#8D40C1 #C14C40 #74C140 #40B4C1
square
#8D40C1 #C14C40 #74C140 #40B4C1
split-complementary
#8D40C1 #B4C140 #40C14C
monochromatic
#4A2166 #6C3094 #8D40C1 #A96ED0 #C49CDF
Accessibility & contrast
On white
5.78
#8D40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#8D40C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D40C1
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D40C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D40C1 | 1.00 | 5.78 | 3.64 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#2767BE
Tritanopia (blue-blind)
#855B7B
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8d40c1; /* rgb */ color: rgb(141, 64, 193); /* oklch */ color: oklch(53.3% 0.197 308.5);
Tailwind
colors: {
custom: {
50: '#b27ad4',
500: '#8d40c1',
950: '#000000',
},
}SCSS
$custom: #8d40c1; $custom-light: #b27ad4; $custom-dark: #000000;
JSON
{
"hex": "#8d40c1",
"rgb": {
"r": 141,
"g": 64,
"b": 193
},
"hsl": {
"h": 275.814,
"s": 50.988,
"l": 50.392
},
"oklch": {
"l": 0.5328,
"c": 0.19662,
"h": 308.5
},
"luminance": 0.1318
}Semantic roles & 50–950 ramp
primary
#8D40C1
secondary
#A9CB92
accent
#DA4D86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83