#8A50B2#8A50B2
#8A50B2 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.156 H 309.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #8A50B2 |
|---|---|
| RGB | rgb(138, 80, 178) |
| HSL | hsl(276, 39%, 51%) |
| HSV | hsv(276, 55%, 70%) |
| CMYK | cmyk(22.5%, 55.1%, 0%, 30.2%) |
| CIE-LAB | lab(44.74, 42.30, -42.87) |
| CIE-LCH | lch(44.74, 60.22, 314.62°) |
| OKLab | oklab(54.14% 0.0991 -0.1203) |
| OKLCH | oklch(54.14% 0.156 309.5) |
| XYZ | xyz(21.3842, 14.3553, 43.7552) |
| Luminance | 0.1436 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.82
Deep Lavender
#8D5EB7
ΔE00 4.07
Purply
#983FB2
ΔE00 4.40
Amethyst
#9B5FC0
ΔE00 5.83
Medium Purple
#9E43A2
ΔE00 6.33
Darkorchid
#9932CC
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A50B2 #78B250
analogous
#5950B2 #8A50B2 #B250A9
triadic
#8A50B2 #B28A50 #50B28A
tetradic
#8A50B2 #B25950 #78B250 #50A9B2
square
#8A50B2 #B25950 #78B250 #50A9B2
split-complementary
#8A50B2 #A9B250 #50B259
monochromatic
#49295E #693C89 #8A50B2 #A67AC5 #C3A5D7
Accessibility & contrast
On white
5.42
#8A50B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#8A50B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A50B2
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A50B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A50B2 | 1.00 | 5.42 | 3.87 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#856179
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a50b2; /* rgb */ color: rgb(138, 80, 178); /* oklch */ color: oklch(54.1% 0.156 309.5);
Tailwind
colors: {
custom: {
50: '#af83c9',
500: '#8a50b2',
950: '#000000',
},
}SCSS
$custom: #8a50b2; $custom-light: #af83c9; $custom-dark: #000000;
JSON
{
"hex": "#8a50b2",
"rgb": {
"r": 138,
"g": 80,
"b": 178
},
"hsl": {
"h": 275.51,
"s": 38.889,
"l": 50.588
},
"oklch": {
"l": 0.54141,
"c": 0.15583,
"h": 309.5
},
"luminance": 0.14355
}Semantic roles & 50–950 ramp
primary
#8A50B2
secondary
#ABC599
accent
#CF5989
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82