#8B51BB#8B51BB
#8B51BB is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.165 H 307.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8B51BB |
|---|---|
| RGB | rgb(139, 81, 187) |
| HSL | hsl(273, 44%, 53%) |
| HSV | hsv(273, 57%, 73%) |
| CMYK | cmyk(25.7%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(45.58, 44.13, -46.78) |
| CIE-LCH | lch(45.58, 64.31, 313.33°) |
| OKLab | oklab(54.96% 0.0994 -0.1317) |
| OKLCH | oklch(54.96% 0.165 307) |
| XYZ | xyz(22.5577, 14.9619, 48.7037) |
| Luminance | 0.1496 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.88
Royal Purple
#7851A9
ΔE00 4.44
Purply
#983FB2
ΔE00 4.98
Amethyst
#9B5FC0
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 6.25
Purpley
#8756E4
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B51BB #81BB51
analogous
#5651BB #8B51BB #BB51B6
triadic
#8B51BB #BB8B51 #51BB8B
tetradic
#8B51BB #BB5651 #81BB51 #51B6BB
square
#8B51BB #BB5651 #81BB51 #51B6BB
split-complementary
#8B51BB #B6BB51 #51BB56
monochromatic
#4C2969 #6C3A95 #8B51BB #A87DCC #C6A9DD
Accessibility & contrast
On white
5.26
#8B51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#8B51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B51BB
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B51BB | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B6ABE
Deuteranopia (green-blind)
#416CB8
Tritanopia (blue-blind)
#84657E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8b51bb; /* rgb */ color: rgb(139, 81, 187); /* oklch */ color: oklch(55.0% 0.165 307.0);
Tailwind
colors: {
custom: {
50: '#b084d0',
500: '#8b51bb',
950: '#000000',
},
}SCSS
$custom: #8b51bb; $custom-light: #b084d0; $custom-dark: #000000;
JSON
{
"hex": "#8b51bb",
"rgb": {
"r": 139,
"g": 81,
"b": 187
},
"hsl": {
"h": 272.83,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.54956,
"c": 0.16501,
"h": 307
},
"luminance": 0.14962
}Semantic roles & 50–950 ramp
primary
#8B51BB
secondary
#B2CB9D
accent
#D4548E
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82