#8A50B8#8A50B8
#8A50B8 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.163 H 307.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #8A50B8 |
|---|---|
| RGB | rgb(138, 80, 184) |
| HSL | hsl(273, 42%, 52%) |
| HSV | hsv(273, 57%, 72%) |
| CMYK | cmyk(25%, 56.5%, 0%, 27.8%) |
| CIE-LAB | lab(45.08, 43.70, -45.83) |
| CIE-LCH | lch(45.08, 63.33, 313.64°) |
| OKLab | oklab(54.51% 0.0993 -0.1289) |
| OKLCH | oklch(54.51% 0.163 307.6) |
| XYZ | xyz(21.9999, 14.6016, 46.9975) |
| Luminance | 0.1460 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.07
Deep Lavender
#8D5EB7
ΔE00 4.09
Purply
#983FB2
ΔE00 4.69
Amethyst
#9B5FC0
ΔE00 5.70
Darkorchid
#9932CC
ΔE00 6.25
Medium Purple
#9E43A2
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A50B8 #7EB850
analogous
#5650B8 #8A50B8 #B850B2
triadic
#8A50B8 #B88A50 #50B88A
tetradic
#8A50B8 #B85650 #7EB850 #50B2B8
square
#8A50B8 #B85650 #7EB850 #50B2B8
split-complementary
#8A50B8 #B2B850 #50B856
monochromatic
#4A2965 #6A3B90 #8A50B8 #A77CCA #C4A7DB
Accessibility & contrast
On white
5.36
#8A50B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#8A50B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A50B8
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A50B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A50B8 | 1.00 | 5.36 | 3.92 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C68BB
Deuteranopia (green-blind)
#416BB5
Tritanopia (blue-blind)
#83637C
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a50b8; /* rgb */ color: rgb(138, 80, 184); /* oklch */ color: oklch(54.5% 0.163 307.6);
Tailwind
colors: {
custom: {
50: '#af83ce',
500: '#8a50b8',
950: '#000000',
},
}SCSS
$custom: #8a50b8; $custom-light: #af83ce; $custom-dark: #000000;
JSON
{
"hex": "#8a50b8",
"rgb": {
"r": 138,
"g": 80,
"b": 184
},
"hsl": {
"h": 273.462,
"s": 42.276,
"l": 51.765
},
"oklch": {
"l": 0.54507,
"c": 0.16278,
"h": 307.6
},
"luminance": 0.14601
}Semantic roles & 50–950 ramp
primary
#8A50B8
secondary
#AFC99B
accent
#D2568D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82