#8A52AE#8A52AE
#8A52AE is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.148 H 310.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #8A52AE |
|---|---|
| RGB | rgb(138, 82, 174) |
| HSL | hsl(277, 36%, 50%) |
| HSV | hsv(277, 53%, 68%) |
| CMYK | cmyk(20.7%, 52.9%, 0%, 31.8%) |
| CIE-LAB | lab(44.93, 40.28, -40.21) |
| CIE-LCH | lch(44.93, 56.92, 315.05°) |
| OKLab | oklab(54.21% 0.096 -0.1125) |
| OKLCH | oklch(54.21% 0.148 310.5) |
| XYZ | xyz(21.1371, 14.4942, 41.7204) |
| Luminance | 0.1449 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.73
Royal Purple
#7851A9
ΔE00 3.86
Purply
#983FB2
ΔE00 4.80
Amethyst
#9B5FC0
ΔE00 5.65
Medium Purple
#9E43A2
ΔE00 6.09
Ugly Purple
#A442A0
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A52AE #76AE52
analogous
#5C52AE #8A52AE #AE52A4
triadic
#8A52AE #AE8A52 #52AE8A
tetradic
#8A52AE #AE5C52 #76AE52 #52A4AE
square
#8A52AE #AE5C52 #76AE52 #52A4AE
split-complementary
#8A52AE #A4AE52 #52AE5C
monochromatic
#482B5B #693E85 #8A52AE #A67CC2 #C2A5D5
Accessibility & contrast
On white
5.39
#8A52AE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#8A52AE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A52AE
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A52AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A52AE | 1.00 | 5.39 | 3.90 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#4B6BAC
Tritanopia (blue-blind)
#866278
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a52ae; /* rgb */ color: rgb(138, 82, 174); /* oklch */ color: oklch(54.2% 0.148 310.5);
Tailwind
colors: {
custom: {
50: '#ae84c6',
500: '#8a52ae',
950: '#000000',
},
}SCSS
$custom: #8a52ae; $custom-light: #ae84c6; $custom-dark: #000000;
JSON
{
"hex": "#8a52ae",
"rgb": {
"r": 138,
"g": 82,
"b": 174
},
"hsl": {
"h": 276.522,
"s": 36.22,
"l": 50.196
},
"oklch": {
"l": 0.54213,
"c": 0.14793,
"h": 310.5
},
"luminance": 0.14494
}Semantic roles & 50–950 ramp
primary
#8A52AE
secondary
#A9C299
accent
#CC5C88
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82