#804FB1#804FB1
#804FB1 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.8% C 0.153 H 304.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).
Color values
| HEX | #804FB1 |
|---|---|
| RGB | rgb(128, 79, 177) |
| HSL | hsl(270, 39%, 50%) |
| HSV | hsv(270, 55%, 69%) |
| CMYK | cmyk(27.7%, 55.4%, 0%, 30.6%) |
| CIE-LAB | lab(43.29, 39.98, -44.65) |
| CIE-LCH | lch(43.29, 59.94, 311.84°) |
| OKLab | oklab(52.8% 0.0874 -0.1258) |
| OKLCH | oklch(52.8% 0.153 304.8) |
| XYZ | xyz(19.6322, 13.3556, 43.1301) |
| Luminance | 0.1336 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.07
Deep Lavender
#8D5EB7
ΔE00 5.15
Purply
#983FB2
ΔE00 5.73
Darkorchid
#9932CC
ΔE00 7.26
Amethyst
#9B5FC0
ΔE00 7.47
Light Indigo
#6D5ACF
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FB1 #80B14F
analogous
#4F4FB1 #804FB1 #B14FB1
triadic
#804FB1 #B1804F #4FB180
tetradic
#804FB1 #B14F4F #80B14F #4FB1B1
square
#804FB1 #B14F4F #80B14F #4FB1B1
split-complementary
#804FB1 #B1B14F #4FB14F
monochromatic
#43295D #613C87 #804FB1 #9F79C4 #BDA4D7
Accessibility & contrast
On white
5.72
#804FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.67
#804FB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FB1
5.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FB1 | 1.00 | 5.72 | 3.67 | 5.72 |
| #FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#3D66AF
Tritanopia (blue-blind)
#786178
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #804fb1; /* rgb */ color: rgb(128, 79, 177); /* oklch */ color: oklch(52.8% 0.153 304.8);
Tailwind
colors: {
custom: {
50: '#a882c9',
500: '#804fb1',
950: '#000000',
},
}SCSS
$custom: #804fb1; $custom-light: #a882c9; $custom-dark: #000000;
JSON
{
"hex": "#804fb1",
"rgb": {
"r": 128,
"g": 79,
"b": 177
},
"hsl": {
"h": 270,
"s": 38.583,
"l": 50.196
},
"oklch": {
"l": 0.52798,
"c": 0.15317,
"h": 304.8
},
"luminance": 0.13355
}Semantic roles & 50–950 ramp
primary
#804FB1
secondary
#AEC498
accent
#CF5994
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82