#8D51B4#8D51B4
#8D51B4 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.158 H 310.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #8D51B4 |
|---|---|
| RGB | rgb(141, 81, 180) |
| HSL | hsl(276, 40%, 51%) |
| HSV | hsv(276, 55%, 71%) |
| CMYK | cmyk(21.7%, 55%, 0%, 29.4%) |
| CIE-LAB | lab(45.42, 43.02, -42.94) |
| CIE-LCH | lch(45.42, 60.78, 315.05°) |
| OKLab | oklab(54.76% 0.1017 -0.1204) |
| OKLCH | oklch(54.76% 0.158 310.2) |
| XYZ | xyz(22.1636, 14.8433, 44.8686) |
| Luminance | 0.1484 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.69
Purply
#983FB2
ΔE00 4.36
Royal Purple
#7851A9
ΔE00 4.44
Amethyst
#9B5FC0
ΔE00 5.18
Medium Purple
#9E43A2
ΔE00 6.19
Darkorchid
#9932CC
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D51B4 #78B451
analogous
#5B51B4 #8D51B4 #B451A9
triadic
#8D51B4 #B48D51 #51B48D
tetradic
#8D51B4 #B45B51 #78B451 #51A9B4
square
#8D51B4 #B45B51 #78B451 #51A9B4
split-complementary
#8D51B4 #A9B451 #51B45B
monochromatic
#4B2A61 #6C3C8C #8D51B4 #A97CC6 #C5A7D9
Accessibility & contrast
On white
5.29
#8D51B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#8D51B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D51B4
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D51B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D51B4 | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3369B7
Deuteranopia (green-blind)
#486DB2
Tritanopia (blue-blind)
#88627B
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8d51b4; /* rgb */ color: rgb(141, 81, 180); /* oklch */ color: oklch(54.8% 0.158 310.2);
Tailwind
colors: {
custom: {
50: '#b184cb',
500: '#8d51b4',
950: '#000000',
},
}SCSS
$custom: #8d51b4; $custom-light: #b184cb; $custom-dark: #000000;
JSON
{
"hex": "#8d51b4",
"rgb": {
"r": 141,
"g": 81,
"b": 180
},
"hsl": {
"h": 276.364,
"s": 39.759,
"l": 51.176
},
"oklch": {
"l": 0.54758,
"c": 0.15759,
"h": 310.2
},
"luminance": 0.14843
}Semantic roles & 50–950 ramp
primary
#8D51B4
secondary
#ACC69B
accent
#D05887
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82