#804FB2#804FB2
#804FB2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.9% C 0.154 H 304.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #804FB2 |
|---|---|
| RGB | rgb(128, 79, 178) |
| HSL | hsl(270, 39%, 50%) |
| HSV | hsv(270, 56%, 70%) |
| CMYK | cmyk(28.1%, 55.6%, 0%, 30.2%) |
| CIE-LAB | lab(43.35, 40.23, -45.14) |
| CIE-LCH | lch(43.35, 60.47, 311.70°) |
| OKLab | oklab(52.86% 0.0874 -0.1272) |
| OKLCH | oklch(52.86% 0.154 304.5) |
| XYZ | xyz(19.7322, 13.3956, 43.6569) |
| Luminance | 0.1340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.16
Deep Lavender
#8D5EB7
ΔE00 5.16
Purply
#983FB2
ΔE00 5.76
Darkorchid
#9932CC
ΔE00 7.18
Amethyst
#9B5FC0
ΔE00 7.45
Light Indigo
#6D5ACF
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FB2 #81B24F
analogous
#4F4FB2 #804FB2 #B14FB2
triadic
#804FB2 #B2804F #4FB280
tetradic
#804FB2 #B24F4F #81B24F #4FB2B1
square
#804FB2 #B24F4F #81B24F #4FB2B1
split-complementary
#804FB2 #B2B14F #4FB24F
monochromatic
#43295E #623C88 #804FB2 #9F7AC5 #BDA4D7
Accessibility & contrast
On white
5.71
#804FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#804FB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FB2
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FB2 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#3C66B0
Tritanopia (blue-blind)
#776279
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #804fb2; /* rgb */ color: rgb(128, 79, 178); /* oklch */ color: oklch(52.9% 0.154 304.5);
Tailwind
colors: {
custom: {
50: '#a882c9',
500: '#804fb2',
950: '#000000',
},
}SCSS
$custom: #804fb2; $custom-light: #a882c9; $custom-dark: #000000;
JSON
{
"hex": "#804fb2",
"rgb": {
"r": 128,
"g": 79,
"b": 178
},
"hsl": {
"h": 269.697,
"s": 39.13,
"l": 50.392
},
"oklch": {
"l": 0.5286,
"c": 0.15438,
"h": 304.5
},
"luminance": 0.13396
}Semantic roles & 50–950 ramp
primary
#804FB2
secondary
#AFC498
accent
#CF5994
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82