#8D40B7#8D40B7
#8D40B7 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.186 H 311.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8D40B7 |
|---|---|
| RGB | rgb(141, 64, 183) |
| HSL | hsl(279, 48%, 48%) |
| HSV | hsv(279, 65%, 72%) |
| CMYK | cmyk(23%, 65%, 0%, 28.2%) |
| CIE-LAB | lab(42.38, 52.36, -49.55) |
| CIE-LCH | lch(42.38, 72.09, 316.58°) |
| OKLab | oklab(52.6% 0.1233 -0.1397) |
| OKLCH | oklch(52.6% 0.186 311.4) |
| XYZ | xyz(21.3636, 12.7489, 46.1260) |
| Luminance | 0.1275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.62
Darkorchid
#9932CC
ΔE00 3.70
Royal Purple
#7851A9
ΔE00 5.93
Barney
#AC1DB8
ΔE00 6.20
Medium Purple
#9E43A2
ΔE00 6.29
Blueviolet
#8A2BE2
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D40B7 #6AB740
analogous
#5240B7 #8D40B7 #B740A5
triadic
#8D40B7 #B78D40 #40B78D
tetradic
#8D40B7 #B75240 #6AB740 #40A5B7
square
#8D40B7 #B75240 #6AB740 #40A5B7
split-complementary
#8D40B7 #A5B740 #40B752
monochromatic
#47205C #6A308A #8D40B7 #A869CB #C397DB
Accessibility & contrast
On white
5.92
#8D40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#8D40B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D40B7
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D40B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D40B7 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#3466B4
Tritanopia (blue-blind)
#885876
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8d40b7; /* rgb */ color: rgb(141, 64, 183); /* oklch */ color: oklch(52.6% 0.186 311.4);
Tailwind
colors: {
custom: {
50: '#b27acd',
500: '#8d40b7',
950: '#000000',
},
}SCSS
$custom: #8d40b7; $custom-light: #b27acd; $custom-dark: #000000;
JSON
{
"hex": "#8d40b7",
"rgb": {
"r": 141,
"g": 64,
"b": 183
},
"hsl": {
"h": 278.824,
"s": 48.178,
"l": 48.431
},
"oklch": {
"l": 0.52604,
"c": 0.18627,
"h": 311.4
},
"luminance": 0.12748
}Semantic roles & 50–950 ramp
primary
#8D40B7
secondary
#A1C68D
accent
#D85080
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82