#784CB1#784CB1
#784CB1 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.5% C 0.156 H 301.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #784CB1 |
|---|---|
| RGB | rgb(120, 76, 177) |
| HSL | hsl(266, 40%, 50%) |
| HSV | hsv(266, 57%, 69%) |
| CMYK | cmyk(32.2%, 57.1%, 0%, 30.6%) |
| CIE-LAB | lab(41.75, 39.63, -47.18) |
| CIE-LCH | lch(41.75, 61.61, 310.03°) |
| OKLab | oklab(51.45% 0.0808 -0.1334) |
| OKLCH | oklch(51.45% 0.156 301.2) |
| XYZ | xyz(18.2641, 12.3362, 43.0054) |
| Luminance | 0.1234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.16
Bluey Purple
#6241C7
ΔE00 6.40
Deep Lavender
#8D5EB7
ΔE00 6.83
Purply
#983FB2
ΔE00 6.88
Light Indigo
#6D5ACF
ΔE00 7.10
Iris
#6258C4
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784CB1 #85B14C
analogous
#4C52B1 #784CB1 #AB4CB1
triadic
#784CB1 #B1784C #4CB178
tetradic
#784CB1 #B14C52 #85B14C #4CB1AB
square
#784CB1 #B14C52 #85B14C #4CB1AB
split-complementary
#784CB1 #B1AB4C #52B14C
monochromatic
#3E275B #5B3A86 #784CB1 #9876C4 #B8A1D7
Accessibility & contrast
On white
6.06
#784CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#784CB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784CB1
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784CB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784CB1 | 1.00 | 6.06 | 3.47 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2062B4
Deuteranopia (green-blind)
#3162AF
Tritanopia (blue-blind)
#6D6077
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #784cb1; /* rgb */ color: rgb(120, 76, 177); /* oklch */ color: oklch(51.5% 0.156 301.2);
Tailwind
colors: {
custom: {
50: '#a280c9',
500: '#784cb1',
950: '#000000',
},
}SCSS
$custom: #784cb1; $custom-light: #a280c9; $custom-dark: #000000;
JSON
{
"hex": "#784cb1",
"rgb": {
"r": 120,
"g": 76,
"b": 177
},
"hsl": {
"h": 266.139,
"s": 39.921,
"l": 49.608
},
"oklch": {
"l": 0.51453,
"c": 0.15599,
"h": 301.2
},
"luminance": 0.12336
}Semantic roles & 50–950 ramp
primary
#784CB1
secondary
#AFC395
accent
#D0589C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82