#804DC5#804DC5
#804DC5 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.180 H 299.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #804DC5 |
|---|---|
| RGB | rgb(128, 77, 197) |
| HSL | hsl(266, 51%, 54%) |
| HSV | hsv(266, 61%, 77%) |
| CMYK | cmyk(35%, 60.9%, 0%, 22.7%) |
| CIE-LAB | lab(44.13, 46.09, -54.99) |
| CIE-LCH | lch(44.13, 71.75, 309.97°) |
| OKLab | oklab(53.81% 0.0899 -0.1561) |
| OKLCH | oklch(53.81% 0.18 299.9) |
| XYZ | xyz(21.6316, 13.9280, 54.3612) |
| Luminance | 0.1393 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.89
Purpley
#8756E4
ΔE00 5.46
Light Indigo
#6D5ACF
ΔE00 5.68
Slate Blue
#6A5ACD
ΔE00 6.03
Darkorchid
#9932CC
ΔE00 6.10
Bluey Purple
#6241C7
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804DC5 #92C54D
analogous
#4D56C5 #804DC5 #BC4DC5
triadic
#804DC5 #C5804D #4DC580
tetradic
#804DC5 #C54D56 #92C54D #4DC5BC
square
#804DC5 #C54D56 #92C54D #4DC5BC
split-complementary
#804DC5 #C5BC4D #56C54D
monochromatic
#462572 #6234A0 #804DC5 #A17BD4 #C2A9E3
Accessibility & contrast
On white
5.55
#804DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#804DC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804DC5
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804DC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804DC5 | 1.00 | 5.55 | 3.79 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#2267C2
Tritanopia (blue-blind)
#716782
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #804dc5; /* rgb */ color: rgb(128, 77, 197); /* oklch */ color: oklch(53.8% 0.180 299.9);
Tailwind
colors: {
custom: {
50: '#a981d7',
500: '#804dc5',
950: '#000000',
},
}SCSS
$custom: #804dc5; $custom-light: #a981d7; $custom-dark: #000000;
JSON
{
"hex": "#804dc5",
"rgb": {
"r": 128,
"g": 77,
"b": 197
},
"hsl": {
"h": 265.5,
"s": 50.847,
"l": 53.725
},
"oklch": {
"l": 0.5381,
"c": 0.18017,
"h": 299.9
},
"luminance": 0.13928
}Semantic roles & 50–950 ramp
primary
#804DC5
secondary
#BBD19D
accent
#DA4D9E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83