#804DC7#804DC7
#804DC7 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.183 H 299.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).
Color values
| HEX | #804DC7 |
|---|---|
| RGB | rgb(128, 77, 199) |
| HSL | hsl(265, 52%, 54%) |
| HSV | hsv(265, 61%, 78%) |
| CMYK | cmyk(35.7%, 61.3%, 0%, 22%) |
| CIE-LAB | lab(44.26, 46.60, -55.94) |
| CIE-LCH | lch(44.26, 72.80, 309.80°) |
| OKLab | oklab(53.95% 0.0898 -0.1589) |
| OKLCH | oklch(53.95% 0.183 299.5) |
| XYZ | xyz(21.8622, 14.0203, 55.5761) |
| Luminance | 0.1402 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.18
Purpley
#8756E4
ΔE00 5.19
Light Indigo
#6D5ACF
ΔE00 5.53
Slate Blue
#6A5ACD
ΔE00 5.90
Darkorchid
#9932CC
ΔE00 6.11
Bluey Purple
#6241C7
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804DC7 #94C74D
analogous
#4D57C7 #804DC7 #BD4DC7
triadic
#804DC7 #C7804D #4DC780
tetradic
#804DC7 #C74D57 #94C74D #4DC7BD
square
#804DC7 #C74D57 #94C74D #4DC7BD
split-complementary
#804DC7 #C7BD4D #57C74D
monochromatic
#462575 #6233A3 #804DC7 #A17CD6 #C2AAE4
Accessibility & contrast
On white
5.52
#804DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.80
#804DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804DC7
5.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804DC7 | 1.00 | 5.52 | 3.80 | 5.52 |
| #FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#1E68C4
Tritanopia (blue-blind)
#706783
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #804dc7; /* rgb */ color: rgb(128, 77, 199); /* oklch */ color: oklch(53.9% 0.183 299.5);
Tailwind
colors: {
custom: {
50: '#a981d9',
500: '#804dc7',
950: '#000000',
},
}SCSS
$custom: #804dc7; $custom-light: #a981d9; $custom-dark: #000000;
JSON
{
"hex": "#804dc7",
"rgb": {
"r": 128,
"g": 77,
"b": 199
},
"hsl": {
"h": 265.082,
"s": 52.137,
"l": 54.118
},
"oklch": {
"l": 0.53949,
"c": 0.18254,
"h": 299.5
},
"luminance": 0.1402
}Semantic roles & 50–950 ramp
primary
#804DC7
secondary
#BCD29E
accent
#DC4CA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83