#784CA7#784CA7
#784CA7 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.8% C 0.144 H 304.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #784CA7 |
|---|---|
| RGB | rgb(120, 76, 167) |
| HSL | hsl(269, 37%, 48%) |
| HSV | hsv(269, 54%, 65%) |
| CMYK | cmyk(28.1%, 54.5%, 0%, 34.5%) |
| CIE-LAB | lab(41.14, 37.09, -42.23) |
| CIE-LCH | lch(41.14, 56.20, 311.29°) |
| OKLab | oklab(50.81% 0.0804 -0.1189) |
| OKLCH | oklch(50.81% 0.144 304.1) |
| XYZ | xyz(17.3037, 11.9520, 37.9471) |
| Luminance | 0.1195 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.46
Purply
#983FB2
ΔE00 6.74
Deep Lavender
#8D5EB7
ΔE00 6.88
Rebeccapurple
#663399
ΔE00 7.25
Bluey Purple
#6241C7
ΔE00 7.84
Iris
#6258C4
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784CA7 #7BA74C
analogous
#4C4DA7 #784CA7 #A64CA7
triadic
#784CA7 #A7784C #4CA778
tetradic
#784CA7 #A74C4D #7BA74C #4CA7A6
square
#784CA7 #A74C4D #7BA74C #4CA7A6
split-complementary
#784CA7 #A7A64C #4DA74C
monochromatic
#3C2653 #5A397D #784CA7 #9772BF #B69CD2
Accessibility & contrast
On white
6.19
#784CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#784CA7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784CA7
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784CA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784CA7 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C60AA
Deuteranopia (green-blind)
#3B61A5
Tritanopia (blue-blind)
#705D72
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #784ca7; /* rgb */ color: rgb(120, 76, 167); /* oklch */ color: oklch(50.8% 0.144 304.1);
Tailwind
colors: {
custom: {
50: '#a27fc2',
500: '#784ca7',
950: '#000000',
},
}SCSS
$custom: #784ca7; $custom-light: #a27fc2; $custom-dark: #000000;
JSON
{
"hex": "#784ca7",
"rgb": {
"r": 120,
"g": 76,
"b": 167
},
"hsl": {
"h": 269.011,
"s": 37.449,
"l": 47.647
},
"oklch": {
"l": 0.50812,
"c": 0.14358,
"h": 304.1
},
"luminance": 0.11952
}Semantic roles & 50–950 ramp
primary
#784CA7
secondary
#A8BE90
accent
#CD5A96
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81