#785CD5#785CD5
#785CD5 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.178 H 290.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #785CD5 |
|---|---|
| RGB | rgb(120, 92, 213) |
| HSL | hsl(254, 59%, 60%) |
| HSV | hsv(254, 57%, 84%) |
| CMYK | cmyk(43.7%, 56.8%, 0%, 16.5%) |
| CIE-LAB | lab(47.56, 40.21, -58.70) |
| CIE-LCH | lch(47.56, 71.15, 304.41°) |
| OKLab | oklab(56.47% 0.0614 -0.1673) |
| OKLCH | oklch(56.47% 0.178 290.2) |
| XYZ | xyz(23.5798, 16.4507, 64.8708) |
| Luminance | 0.1645 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.25
Slate Blue
#6A5ACD
ΔE00 2.85
Purpley
#8756E4
ΔE00 3.57
Dark Periwinkle
#665FD1
ΔE00 3.63
Iris
#6258C4
ΔE00 4.78
Mediumslateblue
#7B68EE
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785CD5 #B9D55C
analogous
#5C7DD5 #785CD5 #B45CD5
triadic
#785CD5 #D5785C #5CD578
tetradic
#785CD5 #D55C7D #B9D55C #5CD5B4
square
#785CD5 #D55C7D #B9D55C #5CD5B4
split-complementary
#785CD5 #D5B45C #7DD55C
monochromatic
#3E2591 #5332C2 #785CD5 #A08DE2 #C9BDEE
Accessibility & contrast
On white
4.89
#785CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#785CD5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785CD5
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785CD5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785CD5 | 1.00 | 4.89 | 4.29 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F73D9
Deuteranopia (green-blind)
#186ED2
Tritanopia (blue-blind)
#5D7790
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #785cd5; /* rgb */ color: rgb(120, 92, 213); /* oklch */ color: oklch(56.5% 0.178 290.2);
Tailwind
colors: {
custom: {
50: '#a58be3',
500: '#785cd5',
950: '#000000',
},
}SCSS
$custom: #785cd5; $custom-light: #a58be3; $custom-dark: #000000;
JSON
{
"hex": "#785cd5",
"rgb": {
"r": 120,
"g": 92,
"b": 213
},
"hsl": {
"h": 253.884,
"s": 59.024,
"l": 59.804
},
"oklch": {
"l": 0.56469,
"c": 0.1782,
"h": 290.2
},
"luminance": 0.16451
}Semantic roles & 50–950 ramp
primary
#785CD5
secondary
#D3DEAF
accent
#E246BE
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84