#804AC2#804AC2
#804AC2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.2% C 0.181 H 301.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #804AC2 |
|---|---|
| RGB | rgb(128, 74, 194) |
| HSL | hsl(267, 50%, 53%) |
| HSV | hsv(267, 62%, 76%) |
| CMYK | cmyk(34%, 61.9%, 0%, 23.9%) |
| CIE-LAB | lab(43.33, 46.94, -54.53) |
| CIE-LCH | lch(43.33, 71.95, 310.72°) |
| OKLab | oklab(53.17% 0.0936 -0.1548) |
| OKLCH | oklch(53.17% 0.181 301.2) |
| XYZ | xyz(21.0862, 13.3817, 52.5005) |
| Luminance | 0.1338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.70
Darkorchid
#9932CC
ΔE00 5.61
Bluey Purple
#6241C7
ΔE00 6.04
Purpley
#8756E4
ΔE00 6.26
Blueviolet
#8A2BE2
ΔE00 6.30
Purply
#983FB2
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804AC2 #8CC24A
analogous
#4A50C2 #804AC2 #BC4AC2
triadic
#804AC2 #C2804A #4AC280
tetradic
#804AC2 #C24A50 #8CC24A #4AC2BC
square
#804AC2 #C24A50 #8CC24A #4AC2BC
split-complementary
#804AC2 #C2BC4A #50C24A
monochromatic
#45256D #62349B #804AC2 #A078D1 #C0A6E1
Accessibility & contrast
On white
5.71
#804AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#804AC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804AC2
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804AC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804AC2 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2166BF
Tritanopia (blue-blind)
#72647F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #804ac2; /* rgb */ color: rgb(128, 74, 194); /* oklch */ color: oklch(53.2% 0.181 301.2);
Tailwind
colors: {
custom: {
50: '#a97fd5',
500: '#804ac2',
950: '#000000',
},
}SCSS
$custom: #804ac2; $custom-light: #a97fd5; $custom-dark: #000000;
JSON
{
"hex": "#804ac2",
"rgb": {
"r": 128,
"g": 74,
"b": 194
},
"hsl": {
"h": 267,
"s": 49.587,
"l": 52.549
},
"oklch": {
"l": 0.53168,
"c": 0.18089,
"h": 301.2
},
"luminance": 0.13382
}Semantic roles & 50–950 ramp
primary
#804AC2
secondary
#B7CE9A
accent
#D94F9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83