#784EB9#784EB9
#784EB9 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.163 H 298.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #784EB9 |
|---|---|
| RGB | rgb(120, 78, 185) |
| HSL | hsl(264, 43%, 52%) |
| HSV | hsv(264, 58%, 73%) |
| CMYK | cmyk(35.1%, 57.8%, 0%, 27.5%) |
| CIE-LAB | lab(42.68, 40.57, -50.38) |
| CIE-LCH | lch(42.68, 64.69, 308.85°) |
| OKLab | oklab(52.3% 0.0783 -0.1428) |
| OKLCH | oklch(52.3% 0.163 298.7) |
| XYZ | xyz(19.2249, 12.9444, 47.3752) |
| Luminance | 0.1295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.10
Light Indigo
#6D5ACF
ΔE00 5.75
Bluey Purple
#6241C7
ΔE00 5.82
Slate Blue
#6A5ACD
ΔE00 5.90
Iris
#6258C4
ΔE00 6.06
Deep Lavender
#8D5EB7
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784EB9 #8FB94E
analogous
#4E5AB9 #784EB9 #AE4EB9
triadic
#784EB9 #B9784E #4EB978
tetradic
#784EB9 #B94E5A #8FB94E #4EB9AE
square
#784EB9 #B94E5A #8FB94E #4EB9AE
split-complementary
#784EB9 #B9AE4E #5AB94E
monochromatic
#402865 #5C3991 #784EB9 #997ACA #BBA6DC
Accessibility & contrast
On white
5.85
#784EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#784EB9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784EB9
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784EB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784EB9 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1865BD
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#6A647C
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #784eb9; /* rgb */ color: rgb(120, 78, 185); /* oklch */ color: oklch(52.3% 0.163 298.7);
Tailwind
colors: {
custom: {
50: '#a381cf',
500: '#784eb9',
950: '#000000',
},
}SCSS
$custom: #784eb9; $custom-light: #a381cf; $custom-dark: #000000;
JSON
{
"hex": "#784eb9",
"rgb": {
"r": 120,
"g": 78,
"b": 185
},
"hsl": {
"h": 263.551,
"s": 43.32,
"l": 51.569
},
"oklch": {
"l": 0.52301,
"c": 0.1629,
"h": 298.7
},
"luminance": 0.12945
}Semantic roles & 50–950 ramp
primary
#784EB9
secondary
#B6C99A
accent
#D355A1
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A14
muted
#7F7C82