#8D51CB#8D51CB
#8D51CB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.184 H 303.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #8D51CB |
|---|---|
| RGB | rgb(141, 81, 203) |
| HSL | hsl(270, 54%, 56%) |
| HSV | hsv(270, 60%, 80%) |
| CMYK | cmyk(30.5%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(46.79, 48.45, -54.10) |
| CIE-LCH | lch(46.79, 72.62, 311.84°) |
| OKLab | oklab(56.2% 0.1021 -0.1531) |
| OKLCH | oklch(56.2% 0.184 303.7) |
| XYZ | xyz(24.7040, 15.8594, 58.2480) |
| Luminance | 0.1586 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.40
Deep Lavender
#8D5EB7
ΔE00 5.09
Lightish Purple
#A552E6
ΔE00 5.69
Amethyst
#9B5FC0
ΔE00 5.72
Darkorchid
#9932CC
ΔE00 5.89
Royal Purple
#7851A9
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D51CB #8FCB51
analogous
#5152CB #8D51CB #CA51CB
triadic
#8D51CB #CB8D51 #51CB8D
tetradic
#8D51CB #CB5152 #8FCB51 #51CBCA
square
#8D51CB #CB5152 #8FCB51 #51CBCA
split-complementary
#8D51CB #CBCA51 #52CB51
monochromatic
#50257C #6E33AC #8D51CB #AC80D9 #CBAFE7
Accessibility & contrast
On white
5.03
#8D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#8D51CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D51CB
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D51CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D51CB | 1.00 | 5.03 | 4.17 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F6ECF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#816A86
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8d51cb; /* rgb */ color: rgb(141, 81, 203); /* oklch */ color: oklch(56.2% 0.184 303.7);
Tailwind
colors: {
custom: {
50: '#b285db',
500: '#8d51cb',
950: '#000000',
},
}SCSS
$custom: #8d51cb; $custom-light: #b285db; $custom-dark: #000000;
JSON
{
"hex": "#8d51cb",
"rgb": {
"r": 141,
"g": 81,
"b": 203
},
"hsl": {
"h": 269.508,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.56203,
"c": 0.18401,
"h": 303.7
},
"luminance": 0.15859
}Semantic roles & 50–950 ramp
primary
#8D51CB
secondary
#BCD5A3
accent
#DD4A95
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83