#8B51AF#8B51AF
#8B51AF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.151 H 310.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #8B51AF |
|---|---|
| RGB | rgb(139, 81, 175) |
| HSL | hsl(277, 37%, 50%) |
| HSV | hsv(277, 54%, 69%) |
| CMYK | cmyk(20.6%, 53.7%, 0%, 31.4%) |
| CIE-LAB | lab(44.90, 41.33, -40.84) |
| CIE-LCH | lch(44.90, 58.11, 315.34°) |
| OKLab | oklab(54.23% 0.0988 -0.1143) |
| OKLCH | oklch(54.23% 0.151 310.8) |
| XYZ | xyz(21.3263, 14.4694, 42.2185) |
| Luminance | 0.1447 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.90
Royal Purple
#7851A9
ΔE00 4.03
Purply
#983FB2
ΔE00 4.47
Amethyst
#9B5FC0
ΔE00 5.66
Medium Purple
#9E43A2
ΔE00 5.91
Ugly Purple
#A442A0
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B51AF #75AF51
analogous
#5C51AF #8B51AF #AF51A4
triadic
#8B51AF #AF8B51 #51AF8B
tetradic
#8B51AF #AF5C51 #75AF51 #51A4AF
square
#8B51AF #AF5C51 #75AF51 #51A4AF
split-complementary
#8B51AF #A4AF51 #51AF5C
monochromatic
#492A5C #6A3D85 #8B51AF #A77BC2 #C3A5D6
Accessibility & contrast
On white
5.39
#8B51AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#8B51AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B51AF
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B51AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B51AF | 1.00 | 5.39 | 3.89 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#4A6BAD
Tritanopia (blue-blind)
#876178
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8b51af; /* rgb */ color: rgb(139, 81, 175); /* oklch */ color: oklch(54.2% 0.151 310.8);
Tailwind
colors: {
custom: {
50: '#af84c7',
500: '#8b51af',
950: '#000000',
},
}SCSS
$custom: #8b51af; $custom-light: #af84c7; $custom-dark: #000000;
JSON
{
"hex": "#8b51af",
"rgb": {
"r": 139,
"g": 81,
"b": 175
},
"hsl": {
"h": 277.021,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.54232,
"c": 0.15111,
"h": 310.8
},
"luminance": 0.14469
}Semantic roles & 50–950 ramp
primary
#8B51AF
secondary
#A9C399
accent
#CD5B87
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82