#804FB3#804FB3
#804FB3 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.9% C 0.156 H 304.2°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).
Color values
| HEX | #804FB3 |
|---|---|
| RGB | rgb(128, 79, 179) |
| HSL | hsl(269, 40%, 51%) |
| HSV | hsv(269, 56%, 70%) |
| CMYK | cmyk(28.5%, 55.9%, 0%, 29.8%) |
| CIE-LAB | lab(43.41, 40.48, -45.64) |
| CIE-LCH | lch(43.41, 61.00, 311.57°) |
| OKLab | oklab(52.92% 0.0875 -0.1287) |
| OKLCH | oklch(52.92% 0.156 304.2) |
| XYZ | xyz(19.8330, 13.4359, 44.1876) |
| Luminance | 0.1344 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.27
Deep Lavender
#8D5EB7
ΔE00 5.17
Purply
#983FB2
ΔE00 5.80
Darkorchid
#9932CC
ΔE00 7.10
Light Indigo
#6D5ACF
ΔE00 7.40
Amethyst
#9B5FC0
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FB3 #82B34F
analogous
#4F50B3 #804FB3 #B24FB3
triadic
#804FB3 #B3804F #4FB380
tetradic
#804FB3 #B34F50 #82B34F #4FB3B2
square
#804FB3 #B34F50 #82B34F #4FB3B2
split-complementary
#804FB3 #B3B24F #50B34F
monochromatic
#43295F #623B89 #804FB3 #9F7AC5 #BEA4D8
Accessibility & contrast
On white
5.70
#804FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#804FB3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FB3
5.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FB3 | 1.00 | 5.70 | 3.69 | 5.70 |
| #FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A65B6
Deuteranopia (green-blind)
#3B67B1
Tritanopia (blue-blind)
#776279
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #804fb3; /* rgb */ color: rgb(128, 79, 179); /* oklch */ color: oklch(52.9% 0.156 304.2);
Tailwind
colors: {
custom: {
50: '#a882ca',
500: '#804fb3',
950: '#000000',
},
}SCSS
$custom: #804fb3; $custom-light: #a882ca; $custom-dark: #000000;
JSON
{
"hex": "#804fb3",
"rgb": {
"r": 128,
"g": 79,
"b": 179
},
"hsl": {
"h": 269.4,
"s": 39.683,
"l": 50.588
},
"oklch": {
"l": 0.52923,
"c": 0.1556,
"h": 304.2
},
"luminance": 0.13436
}Semantic roles & 50–950 ramp
primary
#804FB3
secondary
#AFC599
accent
#D05895
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82