#8D51B2#8D51B2
#8D51B2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.155 H 310.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #8D51B2 |
|---|---|
| RGB | rgb(141, 81, 178) |
| HSL | hsl(277, 39%, 51%) |
| HSV | hsv(277, 54%, 70%) |
| CMYK | cmyk(20.8%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(45.31, 42.56, -41.94) |
| CIE-LCH | lch(45.31, 59.75, 315.42°) |
| OKLab | oklab(54.64% 0.1016 -0.1175) |
| OKLCH | oklch(54.64% 0.155 310.8) |
| XYZ | xyz(21.9613, 14.7624, 43.8034) |
| Luminance | 0.1476 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.74
Purply
#983FB2
ΔE00 4.31
Royal Purple
#7851A9
ΔE00 4.42
Amethyst
#9B5FC0
ΔE00 5.27
Medium Purple
#9E43A2
ΔE00 5.93
Darkorchid
#9932CC
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D51B2 #76B251
analogous
#5C51B2 #8D51B2 #B251A6
triadic
#8D51B2 #B28D51 #51B28D
tetradic
#8D51B2 #B25C51 #76B251 #51A6B2
square
#8D51B2 #B25C51 #76B251 #51A6B2
split-complementary
#8D51B2 #A6B251 #51B25C
monochromatic
#4B2A5F #6C3D89 #8D51B2 #A97BC5 #C5A6D8
Accessibility & contrast
On white
5.31
#8D51B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#8D51B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D51B2
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D51B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D51B2 | 1.00 | 5.31 | 3.95 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#89627A
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8d51b2; /* rgb */ color: rgb(141, 81, 178); /* oklch */ color: oklch(54.6% 0.155 310.8);
Tailwind
colors: {
custom: {
50: '#b184c9',
500: '#8d51b2',
950: '#000000',
},
}SCSS
$custom: #8d51b2; $custom-light: #b184c9; $custom-dark: #000000;
JSON
{
"hex": "#8d51b2",
"rgb": {
"r": 141,
"g": 81,
"b": 178
},
"hsl": {
"h": 277.113,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.5464,
"c": 0.1553,
"h": 310.8
},
"luminance": 0.14762
}Semantic roles & 50–950 ramp
primary
#8D51B2
secondary
#AAC59A
accent
#CF5986
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82