#804AB9#804AB9
#804AB9 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.170 H 303.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #804AB9 |
|---|---|
| RGB | rgb(128, 74, 185) |
| HSL | hsl(269, 44%, 51%) |
| HSV | hsv(269, 60%, 73%) |
| CMYK | cmyk(30.8%, 60%, 0%, 27.5%) |
| CIE-LAB | lab(42.75, 44.70, -50.22) |
| CIE-LCH | lch(42.75, 67.23, 311.67°) |
| OKLab | oklab(52.55% 0.094 -0.1421) |
| OKLCH | oklch(52.55% 0.17 303.5) |
| XYZ | xyz(20.1058, 12.9896, 47.3375) |
| Luminance | 0.1299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.57
Purply
#983FB2
ΔE00 5.57
Darkorchid
#9932CC
ΔE00 5.88
Deep Lavender
#8D5EB7
ΔE00 6.46
Bluey Purple
#6241C7
ΔE00 6.67
Blueviolet
#8A2BE2
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804AB9 #83B94A
analogous
#4A4BB9 #804AB9 #B74AB9
triadic
#804AB9 #B9804A #4AB980
tetradic
#804AB9 #B94A4B #83B94A #4AB9B7
square
#804AB9 #B94A4B #83B94A #4AB9B7
split-complementary
#804AB9 #B9B74A #4BB94A
monochromatic
#432663 #62378F #804AB9 #9F76CA #BEA2DB
Accessibility & contrast
On white
5.84
#804AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#804AB9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804AB9
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804AB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804AB9 | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1164BD
Deuteranopia (green-blind)
#2E65B6
Tritanopia (blue-blind)
#75617A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #804ab9; /* rgb */ color: rgb(128, 74, 185); /* oklch */ color: oklch(52.6% 0.170 303.5);
Tailwind
colors: {
custom: {
50: '#a87fcf',
500: '#804ab9',
950: '#000000',
},
}SCSS
$custom: #804ab9; $custom-light: #a87fcf; $custom-dark: #000000;
JSON
{
"hex": "#804ab9",
"rgb": {
"r": 128,
"g": 74,
"b": 185
},
"hsl": {
"h": 269.189,
"s": 44.223,
"l": 50.784
},
"oklch": {
"l": 0.52555,
"c": 0.17036,
"h": 303.5
},
"luminance": 0.1299
}Semantic roles & 50–950 ramp
primary
#804AB9
secondary
#B0C897
accent
#D45496
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82