#804FC5#804FC5
#804FC5 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.177 H 299.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #804FC5 |
|---|---|
| RGB | rgb(128, 79, 197) |
| HSL | hsl(265, 50%, 54%) |
| HSV | hsv(265, 60%, 77%) |
| CMYK | cmyk(35%, 59.9%, 0%, 22.7%) |
| CIE-LAB | lab(44.54, 45.01, -54.34) |
| CIE-LCH | lch(44.54, 70.56, 309.64°) |
| OKLab | oklab(54.11% 0.0875 -0.1542) |
| OKLCH | oklch(54.11% 0.177 299.6) |
| XYZ | xyz(21.7737, 14.2122, 54.4086) |
| Luminance | 0.1421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.81
Purpley
#8756E4
ΔE00 5.21
Light Indigo
#6D5ACF
ΔE00 5.36
Slate Blue
#6A5ACD
ΔE00 5.74
Deep Lavender
#8D5EB7
ΔE00 6.12
Darkorchid
#9932CC
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FC5 #94C54F
analogous
#4F59C5 #804FC5 #BB4FC5
triadic
#804FC5 #C5804F #4FC580
tetradic
#804FC5 #C54F59 #94C54F #4FC5BB
square
#804FC5 #C54F59 #94C54F #4FC5BB
split-complementary
#804FC5 #C5BB4F #59C54F
monochromatic
#462674 #6235A2 #804FC5 #A17DD4 #C2ABE3
Accessibility & contrast
On white
5.47
#804FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.84
#804FC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FC5
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FC5 | 1.00 | 5.47 | 3.84 | 5.47 |
| #FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0369C9
Deuteranopia (green-blind)
#2668C2
Tritanopia (blue-blind)
#716882
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #804fc5; /* rgb */ color: rgb(128, 79, 197); /* oklch */ color: oklch(54.1% 0.177 299.6);
Tailwind
colors: {
custom: {
50: '#a982d7',
500: '#804fc5',
950: '#000000',
},
}SCSS
$custom: #804fc5; $custom-light: #a982d7; $custom-dark: #000000;
JSON
{
"hex": "#804fc5",
"rgb": {
"r": 128,
"g": 79,
"b": 197
},
"hsl": {
"h": 264.915,
"s": 50.427,
"l": 54.118
},
"oklch": {
"l": 0.54106,
"c": 0.17731,
"h": 299.6
},
"luminance": 0.14212
}Semantic roles & 50–950 ramp
primary
#804FC5
secondary
#BCD19F
accent
#DA4EA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83