#804ED3#804ED3
#804ED3 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.195 H 296.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #804ED3 |
|---|---|
| RGB | rgb(128, 78, 211) |
| HSL | hsl(263, 60%, 57%) |
| HSV | hsv(263, 63%, 83%) |
| CMYK | cmyk(39.3%, 63%, 0%, 17.3%) |
| CIE-LAB | lab(45.28, 49.17, -61.21) |
| CIE-LCH | lch(45.28, 78.51, 308.77°) |
| OKLab | oklab(54.95% 0.0879 -0.1744) |
| OKLCH | oklch(54.95% 0.195 296.8) |
| XYZ | xyz(23.3813, 14.7407, 63.2288) |
| Luminance | 0.1474 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.62
Light Indigo
#6D5ACF
ΔE00 4.85
Slate Blue
#6A5ACD
ΔE00 5.32
Bluish Purple
#703BE7
ΔE00 5.45
Blueviolet
#8A2BE2
ΔE00 6.13
Bluey Purple
#6241C7
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804ED3 #A1D34E
analogous
#4E5FD3 #804ED3 #C24ED3
triadic
#804ED3 #D3804E #4ED380
tetradic
#804ED3 #D34E5F #A1D34E #4ED3C2
square
#804ED3 #D34E5F #A1D34E #4ED3C2
split-complementary
#804ED3 #D3C24E #5FD34E
monochromatic
#472185 #612DB6 #804ED3 #A37FDF #C6B0EB
Accessibility & contrast
On white
5.32
#804ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#804ED3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804ED3
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804ED3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804ED3 | 1.00 | 5.32 | 3.95 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#6C6C89
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #804ed3; /* rgb */ color: rgb(128, 78, 211); /* oklch */ color: oklch(54.9% 0.195 296.8);
Tailwind
colors: {
custom: {
50: '#aa82e1',
500: '#804ed3',
950: '#000000',
},
}SCSS
$custom: #804ed3; $custom-light: #aa82e1; $custom-dark: #000000;
JSON
{
"hex": "#804ed3",
"rgb": {
"r": 128,
"g": 78,
"b": 211
},
"hsl": {
"h": 262.556,
"s": 60.181,
"l": 56.667
},
"oklch": {
"l": 0.54945,
"c": 0.1953,
"h": 296.8
},
"luminance": 0.14741
}Semantic roles & 50–950 ramp
primary
#804ED3
secondary
#C5DAA3
accent
#E344A8
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83