#804FC2#804FC2
#804FC2 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.174 H 300.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).
Color values
| HEX | #804FC2 |
|---|---|
| RGB | rgb(128, 79, 194) |
| HSL | hsl(266, 49%, 54%) |
| HSV | hsv(266, 59%, 76%) |
| CMYK | cmyk(34%, 59.3%, 0%, 23.9%) |
| CIE-LAB | lab(44.34, 44.24, -52.91) |
| CIE-LCH | lch(44.34, 68.97, 309.90°) |
| OKLab | oklab(53.9% 0.0876 -0.15) |
| OKLCH | oklch(53.9% 0.174 300.3) |
| XYZ | xyz(21.4333, 14.0761, 52.6162) |
| Luminance | 0.1408 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.36
Light Indigo
#6D5ACF
ΔE00 5.62
Purpley
#8756E4
ΔE00 5.64
Deep Lavender
#8D5EB7
ΔE00 5.89
Slate Blue
#6A5ACD
ΔE00 5.97
Darkorchid
#9932CC
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FC2 #91C24F
analogous
#4F57C2 #804FC2 #B94FC2
triadic
#804FC2 #C2804F #4FC280
tetradic
#804FC2 #C24F57 #91C24F #4FC2B9
square
#804FC2 #C24F57 #91C24F #4FC2B9
split-complementary
#804FC2 #C2B94F #57C24F
monochromatic
#462770 #62379D #804FC2 #A17CD2 #C2AAE2
Accessibility & contrast
On white
5.50
#804FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.82
#804FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FC2
5.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FC2 | 1.00 | 5.50 | 3.82 | 5.50 |
| #FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F68C6
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#726781
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #804fc2; /* rgb */ color: rgb(128, 79, 194); /* oklch */ color: oklch(53.9% 0.174 300.3);
Tailwind
colors: {
custom: {
50: '#a982d5',
500: '#804fc2',
950: '#000000',
},
}SCSS
$custom: #804fc2; $custom-light: #a982d5; $custom-dark: #000000;
JSON
{
"hex": "#804fc2",
"rgb": {
"r": 128,
"g": 79,
"b": 194
},
"hsl": {
"h": 265.565,
"s": 48.523,
"l": 53.529
},
"oklch": {
"l": 0.53903,
"c": 0.17372,
"h": 300.3
},
"luminance": 0.14076
}Semantic roles & 50–950 ramp
primary
#804FC2
secondary
#BACF9E
accent
#D8509E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83