#784CB2#784CB2
#784CB2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.5% C 0.157 H 300.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #784CB2 |
|---|---|
| RGB | rgb(120, 76, 178) |
| HSL | hsl(266, 40%, 50%) |
| HSV | hsv(266, 57%, 70%) |
| CMYK | cmyk(32.6%, 57.3%, 0%, 30.2%) |
| CIE-LAB | lab(41.81, 39.88, -47.67) |
| CIE-LCH | lch(41.81, 62.15, 309.92°) |
| OKLab | oklab(51.52% 0.0808 -0.1349) |
| OKLCH | oklch(51.52% 0.157 300.9) |
| XYZ | xyz(18.3642, 12.3762, 43.5322) |
| Luminance | 0.1238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.30
Bluey Purple
#6241C7
ΔE00 6.28
Deep Lavender
#8D5EB7
ΔE00 6.84
Purply
#983FB2
ΔE00 6.91
Light Indigo
#6D5ACF
ΔE00 6.96
Iris
#6258C4
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784CB2 #86B24C
analogous
#4C53B2 #784CB2 #AB4CB2
triadic
#784CB2 #B2784C #4CB278
tetradic
#784CB2 #B24C53 #86B24C #4CB2AB
square
#784CB2 #B24C53 #86B24C #4CB2AB
split-complementary
#784CB2 #B2AB4C #53B24C
monochromatic
#3E275C #5B3A87 #784CB2 #9876C5 #B9A1D7
Accessibility & contrast
On white
6.04
#784CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#784CB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784CB2
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784CB2 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#6C6178
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #784cb2; /* rgb */ color: rgb(120, 76, 178); /* oklch */ color: oklch(51.5% 0.157 300.9);
Tailwind
colors: {
custom: {
50: '#a280ca',
500: '#784cb2',
950: '#000000',
},
}SCSS
$custom: #784cb2; $custom-light: #a280ca; $custom-dark: #000000;
JSON
{
"hex": "#784cb2",
"rgb": {
"r": 120,
"g": 76,
"b": 178
},
"hsl": {
"h": 265.882,
"s": 40.157,
"l": 49.804
},
"oklch": {
"l": 0.51519,
"c": 0.15723,
"h": 300.9
},
"luminance": 0.12376
}Semantic roles & 50–950 ramp
primary
#784CB2
secondary
#B0C496
accent
#D0589C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82