#804AB7#804AB7
#804AB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.4% C 0.168 H 304.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #804AB7 |
|---|---|
| RGB | rgb(128, 74, 183) |
| HSL | hsl(270, 43%, 50%) |
| HSV | hsv(270, 60%, 72%) |
| CMYK | cmyk(30.1%, 59.6%, 0%, 28.2%) |
| CIE-LAB | lab(42.62, 44.20, -49.25) |
| CIE-LCH | lch(42.62, 66.18, 311.91°) |
| OKLab | oklab(52.42% 0.094 -0.1393) |
| OKLCH | oklch(52.42% 0.168 304) |
| XYZ | xyz(19.8962, 12.9057, 46.2334) |
| Luminance | 0.1291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.35
Purply
#983FB2
ΔE00 5.43
Darkorchid
#9932CC
ΔE00 5.99
Deep Lavender
#8D5EB7
ΔE00 6.40
Bluey Purple
#6241C7
ΔE00 6.86
Blueviolet
#8A2BE2
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804AB7 #81B74A
analogous
#4A4AB7 #804AB7 #B74AB7
triadic
#804AB7 #B7804A #4AB780
tetradic
#804AB7 #B74A4A #81B74A #4AB7B7
square
#804AB7 #B74A4A #81B74A #4AB7B7
split-complementary
#804AB7 #B7B74A #4AB74A
monochromatic
#432660 #62388C #804AB7 #9F76C8 #BDA2DA
Accessibility & contrast
On white
5.86
#804AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#804AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804AB7
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804AB7 | 1.00 | 5.86 | 3.58 | 5.86 |
| #FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1663BB
Deuteranopia (green-blind)
#3165B4
Tritanopia (blue-blind)
#766079
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #804ab7; /* rgb */ color: rgb(128, 74, 183); /* oklch */ color: oklch(52.4% 0.168 304.0);
Tailwind
colors: {
custom: {
50: '#a87fcd',
500: '#804ab7',
950: '#000000',
},
}SCSS
$custom: #804ab7; $custom-light: #a87fcd; $custom-dark: #000000;
JSON
{
"hex": "#804ab7",
"rgb": {
"r": 128,
"g": 74,
"b": 183
},
"hsl": {
"h": 269.725,
"s": 43.083,
"l": 50.392
},
"oklch": {
"l": 0.52422,
"c": 0.168,
"h": 304
},
"luminance": 0.12906
}Semantic roles & 50–950 ramp
primary
#804AB7
secondary
#AFC796
accent
#D35594
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82