#8D40C3#8D40C3
#8D40C3 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.199 H 308.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #8D40C3 |
|---|---|
| RGB | rgb(141, 64, 195) |
| HSL | hsl(275, 52%, 51%) |
| HSV | hsv(275, 67%, 76%) |
| CMYK | cmyk(27.7%, 67.2%, 0%, 23.5%) |
| CIE-LAB | lab(43.17, 55.03, -55.30) |
| CIE-LCH | lch(43.17, 78.02, 314.86°) |
| OKLab | oklab(53.42% 0.1223 -0.1566) |
| OKLCH | oklch(53.42% 0.199 308) |
| XYZ | xyz(22.6662, 13.2700, 52.9865) |
| Luminance | 0.1327 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.72
Purply
#983FB2
ΔE00 4.06
Blueviolet
#8A2BE2
ΔE00 5.18
Darkviolet
#9400D3
ΔE00 6.15
Violet (survey)
#9A0EEA
ΔE00 6.37
Vibrant Purple
#AD03DE
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D40C3 #76C340
analogous
#4B40C3 #8D40C3 #C340B7
triadic
#8D40C3 #C38D40 #40C38D
tetradic
#8D40C3 #C34B40 #76C340 #40B7C3
square
#8D40C3 #C34B40 #76C340 #40B7C3
split-complementary
#8D40C3 #B7C340 #40C34B
monochromatic
#4B2168 #6C2F97 #8D40C3 #A96FD2 #C59DE0
Accessibility & contrast
On white
5.75
#8D40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#8D40C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D40C3
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D40C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D40C3 | 1.00 | 5.75 | 3.65 | 5.75 |
| #FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#2467C0
Tritanopia (blue-blind)
#855C7C
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8d40c3; /* rgb */ color: rgb(141, 64, 195); /* oklch */ color: oklch(53.4% 0.199 308.0);
Tailwind
colors: {
custom: {
50: '#b37ad6',
500: '#8d40c3',
950: '#000000',
},
}SCSS
$custom: #8d40c3; $custom-light: #b37ad6; $custom-dark: #000000;
JSON
{
"hex": "#8d40c3",
"rgb": {
"r": 141,
"g": 64,
"b": 195
},
"hsl": {
"h": 275.267,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.53419,
"c": 0.19869,
"h": 308
},
"luminance": 0.1327
}Semantic roles & 50–950 ramp
primary
#8D40C3
secondary
#AACC92
accent
#DC4C87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83