#8A50BB#8A50BB
#8A50BB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.166 H 306.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8A50BB |
|---|---|
| RGB | rgb(138, 80, 187) |
| HSL | hsl(273, 44%, 52%) |
| HSV | hsv(273, 57%, 73%) |
| CMYK | cmyk(26.2%, 57.2%, 0%, 26.7%) |
| CIE-LAB | lab(45.26, 44.41, -47.30) |
| CIE-LCH | lch(45.26, 64.88, 313.20°) |
| OKLab | oklab(54.69% 0.0994 -0.1332) |
| OKLCH | oklch(54.69% 0.166 306.7) |
| XYZ | xyz(22.3177, 14.7287, 48.6713) |
| Luminance | 0.1473 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.19
Royal Purple
#7851A9
ΔE00 4.30
Purply
#983FB2
ΔE00 4.91
Amethyst
#9B5FC0
ΔE00 5.71
Darkorchid
#9932CC
ΔE00 6.07
Purpley
#8756E4
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A50BB #81BB50
analogous
#5450BB #8A50BB #BB50B7
triadic
#8A50BB #BB8A50 #50BB8A
tetradic
#8A50BB #BB5450 #81BB50 #50B7BB
square
#8A50BB #BB5450 #81BB50 #50B7BB
split-complementary
#8A50BB #B7BB50 #50BB54
monochromatic
#4B2868 #6B3A94 #8A50BB #A77CCC #C5A8DD
Accessibility & contrast
On white
5.32
#8A50BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#8A50BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A50BB
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A50BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A50BB | 1.00 | 5.32 | 3.95 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2869BE
Deuteranopia (green-blind)
#3F6CB8
Tritanopia (blue-blind)
#82647E
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a50bb; /* rgb */ color: rgb(138, 80, 187); /* oklch */ color: oklch(54.7% 0.166 306.7);
Tailwind
colors: {
custom: {
50: '#af83d0',
500: '#8a50bb',
950: '#000000',
},
}SCSS
$custom: #8a50bb; $custom-light: #af83d0; $custom-dark: #000000;
JSON
{
"hex": "#8a50bb",
"rgb": {
"r": 138,
"g": 80,
"b": 187
},
"hsl": {
"h": 272.523,
"s": 44.033,
"l": 52.353
},
"oklch": {
"l": 0.54693,
"c": 0.16626,
"h": 306.7
},
"luminance": 0.14728
}Semantic roles & 50–950 ramp
primary
#8A50BB
secondary
#B1CB9C
accent
#D4548F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82