#785AAA#785AAA
#785AAA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.4% C 0.125 H 299.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #785AAA |
|---|---|
| RGB | rgb(120, 90, 170) |
| HSL | hsl(263, 32%, 51%) |
| HSV | hsv(263, 47%, 67%) |
| CMYK | cmyk(29.4%, 47.1%, 0%, 33.3%) |
| CIE-LAB | lab(44.53, 29.68, -38.62) |
| CIE-LCH | lch(44.53, 48.70, 307.54°) |
| OKLab | oklab(53.39% 0.0613 -0.1084) |
| OKLCH | oklch(53.39% 0.125 299.5) |
| XYZ | xyz(18.6559, 14.2076, 39.7819) |
| Luminance | 0.1421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.81
Deep Lavender
#8D5EB7
ΔE00 4.81
Iris
#6258C4
ΔE00 7.26
Light Indigo
#6D5ACF
ΔE00 7.28
Slate Blue
#6A5ACD
ΔE00 7.32
Amethyst
#9B5FC0
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785AAA #8CAA5A
analogous
#5A64AA #785AAA #A05AAA
triadic
#785AAA #AA785A #5AAA78
tetradic
#785AAA #AA5A64 #8CAA5A #5AAAA0
square
#785AAA #AA5A64 #8CAA5A #5AAAA0
split-complementary
#785AAA #AAA05A #64AA5A
monochromatic
#3F2F5B #5B4483 #785AAA #9982BF #BAABD4
Accessibility & contrast
On white
5.47
#785AAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.84
#785AAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785AAA
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785AAA | 1.00 | 5.47 | 3.84 | 5.47 |
| #FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4269AD
Deuteranopia (green-blind)
#4869A8
Tritanopia (blue-blind)
#6E687A
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #785aaa; /* rgb */ color: rgb(120, 90, 170); /* oklch */ color: oklch(53.4% 0.125 299.5);
Tailwind
colors: {
custom: {
50: '#a189c4',
500: '#785aaa',
950: '#000000',
},
}SCSS
$custom: #785aaa; $custom-light: #a189c4; $custom-dark: #000000;
JSON
{
"hex": "#785aaa",
"rgb": {
"r": 120,
"g": 90,
"b": 170
},
"hsl": {
"h": 262.5,
"s": 32,
"l": 50.98
},
"oklch": {
"l": 0.53389,
"c": 0.12452,
"h": 299.5
},
"luminance": 0.14208
}Semantic roles & 50–950 ramp
primary
#785AAA
secondary
#B4C29E
accent
#C860A1
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81