#8D51C6#8D51C6
#8D51C6 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.178 H 305.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #8D51C6 |
|---|---|
| RGB | rgb(141, 81, 198) |
| HSL | hsl(271, 51%, 55%) |
| HSV | hsv(271, 59%, 78%) |
| CMYK | cmyk(28.8%, 59.1%, 0%, 22.4%) |
| CIE-LAB | lab(46.48, 47.24, -51.71) |
| CIE-LCH | lch(46.48, 70.04, 312.41°) |
| OKLab | oklab(55.88% 0.1021 -0.1461) |
| OKLCH | oklch(55.88% 0.178 305) |
| XYZ | xyz(24.1178, 15.6249, 55.1605) |
| Luminance | 0.1563 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.58
Purpley
#8756E4
ΔE00 5.18
Amethyst
#9B5FC0
ΔE00 5.41
Royal Purple
#7851A9
ΔE00 5.78
Purply
#983FB2
ΔE00 5.85
Darkorchid
#9932CC
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D51C6 #8AC651
analogous
#5351C6 #8D51C6 #C651C5
triadic
#8D51C6 #C68D51 #51C68D
tetradic
#8D51C6 #C65351 #8AC651 #51C5C6
square
#8D51C6 #C65351 #8AC651 #51C5C6
split-complementary
#8D51C6 #C5C651 #51C653
monochromatic
#4F2776 #6E36A4 #8D51C6 #AB7FD5 #C9ADE4
Accessibility & contrast
On white
5.09
#8D51C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#8D51C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D51C6
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D51C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D51C6 | 1.00 | 5.09 | 4.12 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C6CCA
Deuteranopia (green-blind)
#386EC3
Tritanopia (blue-blind)
#836884
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8d51c6; /* rgb */ color: rgb(141, 81, 198); /* oklch */ color: oklch(55.9% 0.178 305.0);
Tailwind
colors: {
custom: {
50: '#b284d8',
500: '#8d51c6',
950: '#000000',
},
}SCSS
$custom: #8d51c6; $custom-light: #b284d8; $custom-dark: #000000;
JSON
{
"hex": "#8d51c6",
"rgb": {
"r": 141,
"g": 81,
"b": 198
},
"hsl": {
"h": 270.769,
"s": 50.649,
"l": 54.706
},
"oklch": {
"l": 0.55877,
"c": 0.17826,
"h": 305
},
"luminance": 0.15625
}Semantic roles & 50–950 ramp
primary
#8D51C6
secondary
#B9D2A1
accent
#DA4E92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83