#804CAC#804CAC
#804CAC is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.152 H 306.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #804CAC |
|---|---|
| RGB | rgb(128, 76, 172) |
| HSL | hsl(273, 39%, 49%) |
| HSV | hsv(273, 56%, 67%) |
| CMYK | cmyk(25.6%, 55.8%, 0%, 32.5%) |
| CIE-LAB | lab(42.36, 40.43, -43.19) |
| CIE-LCH | lch(42.36, 59.16, 313.11°) |
| OKLab | oklab(52.02% 0.0912 -0.1215) |
| OKLCH | oklch(52.02% 0.152 306.9) |
| XYZ | xyz(18.9314, 12.7368, 40.4829) |
| Luminance | 0.1274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.25
Purply
#983FB2
ΔE00 5.21
Deep Lavender
#8D5EB7
ΔE00 5.90
Darkorchid
#9932CC
ΔE00 7.20
Medium Purple
#9E43A2
ΔE00 7.35
Amethyst
#9B5FC0
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804CAC #78AC4C
analogous
#504CAC #804CAC #AC4CA8
triadic
#804CAC #AC804C #4CAC80
tetradic
#804CAC #AC504C #78AC4C #4CA8AC
square
#804CAC #AC504C #78AC4C #4CA8AC
split-complementary
#804CAC #A8AC4C #4CAC50
monochromatic
#412657 #603982 #804CAC #9E74C1 #BB9ED4
Accessibility & contrast
On white
5.92
#804CAC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#804CAC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804CAC
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804CAC | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B62AF
Deuteranopia (green-blind)
#3E64AA
Tritanopia (blue-blind)
#795E75
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #804cac; /* rgb */ color: rgb(128, 76, 172); /* oklch */ color: oklch(52.0% 0.152 306.9);
Tailwind
colors: {
custom: {
50: '#a780c5',
500: '#804cac',
950: '#000000',
},
}SCSS
$custom: #804cac; $custom-light: #a780c5; $custom-dark: #000000;
JSON
{
"hex": "#804cac",
"rgb": {
"r": 128,
"g": 76,
"b": 172
},
"hsl": {
"h": 272.5,
"s": 38.71,
"l": 48.627
},
"oklch": {
"l": 0.52018,
"c": 0.15191,
"h": 306.9
},
"luminance": 0.12737
}Semantic roles & 50–950 ramp
primary
#804CAC
secondary
#A8C193
accent
#CF598F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82