#804FB5#804FB5
#804FB5 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.0% C 0.158 H 303.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).
Color values
| HEX | #804FB5 |
|---|---|
| RGB | rgb(128, 79, 181) |
| HSL | hsl(269, 41%, 51%) |
| HSV | hsv(269, 56%, 71%) |
| CMYK | cmyk(29.3%, 56.4%, 0%, 29%) |
| CIE-LAB | lab(43.53, 40.97, -46.62) |
| CIE-LCH | lch(43.53, 62.06, 311.31°) |
| OKLab | oklab(53.05% 0.0876 -0.1315) |
| OKLCH | oklch(53.05% 0.158 303.6) |
| XYZ | xyz(20.0367, 13.5174, 45.2606) |
| Luminance | 0.1352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.50
Deep Lavender
#8D5EB7
ΔE00 5.21
Purply
#983FB2
ΔE00 5.89
Darkorchid
#9932CC
ΔE00 6.97
Light Indigo
#6D5ACF
ΔE00 7.12
Slate Blue
#6A5ACD
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FB5 #84B54F
analogous
#4F51B5 #804FB5 #B34FB5
triadic
#804FB5 #B5804F #4FB580
tetradic
#804FB5 #B54F51 #84B54F #4FB5B3
square
#804FB5 #B54F51 #84B54F #4FB5B3
split-complementary
#804FB5 #B5B34F #51B54F
monochromatic
#442961 #623B8C #804FB5 #9F7AC7 #BEA5D9
Accessibility & contrast
On white
5.67
#804FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.70
#804FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FB5
5.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FB5 | 1.00 | 5.67 | 3.70 | 5.67 |
| #FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2766B8
Deuteranopia (green-blind)
#3967B3
Tritanopia (blue-blind)
#76637A
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #804fb5; /* rgb */ color: rgb(128, 79, 181); /* oklch */ color: oklch(53.0% 0.158 303.6);
Tailwind
colors: {
custom: {
50: '#a882cc',
500: '#804fb5',
950: '#000000',
},
}SCSS
$custom: #804fb5; $custom-light: #a882cc; $custom-dark: #000000;
JSON
{
"hex": "#804fb5",
"rgb": {
"r": 128,
"g": 79,
"b": 181
},
"hsl": {
"h": 268.824,
"s": 40.8,
"l": 50.98
},
"oklch": {
"l": 0.5305,
"c": 0.15802,
"h": 303.6
},
"luminance": 0.13517
}Semantic roles & 50–950 ramp
primary
#804FB5
secondary
#B1C699
accent
#D15796
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82