#8A50B7#8A50B7
#8A50B7 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.162 H 307.9°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #8A50B7 |
|---|---|
| RGB | rgb(138, 80, 183) |
| HSL | hsl(274, 42%, 52%) |
| HSV | hsv(274, 56%, 72%) |
| CMYK | cmyk(24.6%, 56.3%, 0%, 28.2%) |
| CIE-LAB | lab(45.03, 43.47, -45.34) |
| CIE-LCH | lch(45.03, 62.81, 313.79°) |
| OKLab | oklab(54.45% 0.0993 -0.1275) |
| OKLCH | oklch(54.45% 0.162 307.9) |
| XYZ | xyz(21.8954, 14.5598, 46.4474) |
| Luminance | 0.1456 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.01
Deep Lavender
#8D5EB7
ΔE00 4.07
Purply
#983FB2
ΔE00 4.62
Amethyst
#9B5FC0
ΔE00 5.71
Darkorchid
#9932CC
ΔE00 6.33
Medium Purple
#9E43A2
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A50B7 #7DB750
analogous
#5750B7 #8A50B7 #B750B1
triadic
#8A50B7 #B78A50 #50B78A
tetradic
#8A50B7 #B75750 #7DB750 #50B1B7
square
#8A50B7 #B75750 #7DB750 #50B1B7
split-complementary
#8A50B7 #B1B750 #50B757
monochromatic
#4A2964 #6A3B8F #8A50B7 #A77BC9 #C4A7DB
Accessibility & contrast
On white
5.37
#8A50B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#8A50B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A50B7
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A50B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A50B7 | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D68BA
Deuteranopia (green-blind)
#426BB4
Tritanopia (blue-blind)
#83637C
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a50b7; /* rgb */ color: rgb(138, 80, 183); /* oklch */ color: oklch(54.4% 0.162 307.9);
Tailwind
colors: {
custom: {
50: '#af83cd',
500: '#8a50b7',
950: '#000000',
},
}SCSS
$custom: #8a50b7; $custom-light: #af83cd; $custom-dark: #000000;
JSON
{
"hex": "#8a50b7",
"rgb": {
"r": 138,
"g": 80,
"b": 183
},
"hsl": {
"h": 273.786,
"s": 41.7,
"l": 51.569
},
"oklch": {
"l": 0.54445,
"c": 0.16162,
"h": 307.9
},
"luminance": 0.14559
}Semantic roles & 50–950 ramp
primary
#8A50B7
secondary
#AFC89B
accent
#D2568C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82