#804ED2#804ED2
#804ED2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.194 H 297.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #804ED2 |
|---|---|
| RGB | rgb(128, 78, 210) |
| HSL | hsl(263, 59%, 56%) |
| HSV | hsv(263, 63%, 82%) |
| CMYK | cmyk(39%, 62.9%, 0%, 17.6%) |
| CIE-LAB | lab(45.21, 48.90, -60.75) |
| CIE-LCH | lch(45.21, 77.99, 308.84°) |
| OKLab | oklab(54.87% 0.088 -0.173) |
| OKLCH | oklch(54.87% 0.194 297) |
| XYZ | xyz(23.2563, 14.6907, 62.5706) |
| Luminance | 0.1469 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.72
Light Indigo
#6D5ACF
ΔE00 4.87
Slate Blue
#6A5ACD
ΔE00 5.34
Bluish Purple
#703BE7
ΔE00 5.51
Blueviolet
#8A2BE2
ΔE00 6.15
Bluey Purple
#6241C7
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804ED2 #A0D24E
analogous
#4E5ED2 #804ED2 #C24ED2
triadic
#804ED2 #D2804E #4ED280
tetradic
#804ED2 #D24E5E #A0D24E #4ED2C2
square
#804ED2 #D24E5E #A0D24E #4ED2C2
split-complementary
#804ED2 #D2C24E #5ED24E
monochromatic
#472284 #612EB5 #804ED2 #A37FDE #C6B0EB
Accessibility & contrast
On white
5.33
#804ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#804ED2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804ED2
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804ED2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804ED2 | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#6C6C89
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #804ed2; /* rgb */ color: rgb(128, 78, 210); /* oklch */ color: oklch(54.9% 0.194 297.0);
Tailwind
colors: {
custom: {
50: '#aa82e1',
500: '#804ed2',
950: '#000000',
},
}SCSS
$custom: #804ed2; $custom-light: #aa82e1; $custom-dark: #000000;
JSON
{
"hex": "#804ed2",
"rgb": {
"r": 128,
"g": 78,
"b": 210
},
"hsl": {
"h": 262.727,
"s": 59.459,
"l": 56.471
},
"oklch": {
"l": 0.54872,
"c": 0.19414,
"h": 297
},
"luminance": 0.14691
}Semantic roles & 50–950 ramp
primary
#804ED2
secondary
#C4D9A3
accent
#E345A7
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83