#804CAE#804CAE
#804CAE is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.154 H 306.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #804CAE |
|---|---|
| RGB | rgb(128, 76, 174) |
| HSL | hsl(272, 39%, 49%) |
| HSV | hsv(272, 56%, 68%) |
| CMYK | cmyk(26.4%, 56.3%, 0%, 31.8%) |
| CIE-LAB | lab(42.48, 40.92, -44.18) |
| CIE-LCH | lch(42.48, 60.22, 312.80°) |
| OKLab | oklab(52.14% 0.0913 -0.1244) |
| OKLCH | oklch(52.14% 0.154 306.3) |
| XYZ | xyz(19.1249, 12.8142, 41.5021) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.30
Purply
#983FB2
ΔE00 5.24
Deep Lavender
#8D5EB7
ΔE00 5.86
Darkorchid
#9932CC
ΔE00 7.00
Medium Purple
#9E43A2
ΔE00 7.54
Amethyst
#9B5FC0
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804CAE #7AAE4C
analogous
#4F4CAE #804CAE #AE4CAB
triadic
#804CAE #AE804C #4CAE80
tetradic
#804CAE #AE4F4C #7AAE4C #4CABAE
square
#804CAE #AE4F4C #7AAE4C #4CABAE
split-complementary
#804CAE #ABAE4C #4CAE4F
monochromatic
#412759 #613983 #804CAE #9E75C3 #BC9FD5
Accessibility & contrast
On white
5.89
#804CAE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#804CAE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804CAE
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804CAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804CAE | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2963B1
Deuteranopia (green-blind)
#3C65AC
Tritanopia (blue-blind)
#795E76
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #804cae; /* rgb */ color: rgb(128, 76, 174); /* oklch */ color: oklch(52.1% 0.154 306.3);
Tailwind
colors: {
custom: {
50: '#a880c7',
500: '#804cae',
950: '#000000',
},
}SCSS
$custom: #804cae; $custom-light: #a880c7; $custom-dark: #000000;
JSON
{
"hex": "#804cae",
"rgb": {
"r": 128,
"g": 76,
"b": 174
},
"hsl": {
"h": 271.837,
"s": 39.2,
"l": 49.02
},
"oklch": {
"l": 0.52143,
"c": 0.1543,
"h": 306.3
},
"luminance": 0.12814
}Semantic roles & 50–950 ramp
primary
#804CAE
secondary
#A9C294
accent
#CF5990
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82