#804FB7#804FB7
#804FB7 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.160 H 303.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #804FB7 |
|---|---|
| RGB | rgb(128, 79, 183) |
| HSL | hsl(268, 42%, 51%) |
| HSV | hsv(268, 57%, 72%) |
| CMYK | cmyk(30.1%, 56.8%, 0%, 28.2%) |
| CIE-LAB | lab(43.65, 41.47, -47.60) |
| CIE-LCH | lch(43.65, 63.13, 311.06°) |
| OKLab | oklab(53.18% 0.0876 -0.1344) |
| OKLCH | oklch(53.18% 0.16 303.1) |
| XYZ | xyz(20.2434, 13.6001, 46.3492) |
| Luminance | 0.1360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.76
Deep Lavender
#8D5EB7
ΔE00 5.27
Purply
#983FB2
ΔE00 6.00
Darkorchid
#9932CC
ΔE00 6.85
Light Indigo
#6D5ACF
ΔE00 6.86
Slate Blue
#6A5ACD
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804FB7 #86B74F
analogous
#4F52B7 #804FB7 #B44FB7
triadic
#804FB7 #B7804F #4FB780
tetradic
#804FB7 #B74F52 #86B74F #4FB7B4
square
#804FB7 #B74F52 #86B74F #4FB7B4
split-complementary
#804FB7 #B7B44F #52B74F
monochromatic
#442963 #623A8F #804FB7 #9F7AC9 #BFA6DB
Accessibility & contrast
On white
5.65
#804FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#804FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804FB7
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804FB7 | 1.00 | 5.65 | 3.72 | 5.65 |
| #FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2566BA
Deuteranopia (green-blind)
#3767B5
Tritanopia (blue-blind)
#76637B
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #804fb7; /* rgb */ color: rgb(128, 79, 183); /* oklch */ color: oklch(53.2% 0.160 303.1);
Tailwind
colors: {
custom: {
50: '#a882cd',
500: '#804fb7',
950: '#000000',
},
}SCSS
$custom: #804fb7; $custom-light: #a882cd; $custom-dark: #000000;
JSON
{
"hex": "#804fb7",
"rgb": {
"r": 128,
"g": 79,
"b": 183
},
"hsl": {
"h": 268.269,
"s": 41.935,
"l": 51.373
},
"oklch": {
"l": 0.53178,
"c": 0.16044,
"h": 303.1
},
"luminance": 0.136
}Semantic roles & 50–950 ramp
primary
#804FB7
secondary
#B2C89A
accent
#D25697
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B13
muted
#7F7C82