#785CD4#785CD4
#785CD4 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.177 H 290.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #785CD4 |
|---|---|
| RGB | rgb(120, 92, 212) |
| HSL | hsl(254, 58%, 60%) |
| HSV | hsv(254, 57%, 83%) |
| CMYK | cmyk(43.4%, 56.6%, 0%, 16.9%) |
| CIE-LAB | lab(47.49, 39.93, -58.24) |
| CIE-LCH | lch(47.49, 70.61, 304.43°) |
| OKLab | oklab(56.4% 0.0614 -0.1659) |
| OKLCH | oklch(56.4% 0.177 290.3) |
| XYZ | xyz(23.4532, 16.4000, 64.2044) |
| Luminance | 0.1640 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.21
Slate Blue
#6A5ACD
ΔE00 2.80
Dark Periwinkle
#665FD1
ΔE00 3.63
Purpley
#8756E4
ΔE00 3.65
Iris
#6258C4
ΔE00 4.71
Mediumslateblue
#7B68EE
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785CD4 #B8D45C
analogous
#5C7CD4 #785CD4 #B45CD4
triadic
#785CD4 #D4785C #5CD478
tetradic
#785CD4 #D45C7C #B8D45C #5CD4B4
square
#785CD4 #D45C7C #B8D45C #5CD4B4
split-complementary
#785CD4 #D4B45C #7CD45C
monochromatic
#3F2690 #5433C0 #785CD4 #A08CE1 #C8BDEE
Accessibility & contrast
On white
4.91
#785CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#785CD4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785CD4
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785CD4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785CD4 | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1373D8
Deuteranopia (green-blind)
#1B6ED1
Tritanopia (blue-blind)
#5D768F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #785cd4; /* rgb */ color: rgb(120, 92, 212); /* oklch */ color: oklch(56.4% 0.177 290.3);
Tailwind
colors: {
custom: {
50: '#a58be2',
500: '#785cd4',
950: '#000000',
},
}SCSS
$custom: #785cd4; $custom-light: #a58be2; $custom-dark: #000000;
JSON
{
"hex": "#785cd4",
"rgb": {
"r": 120,
"g": 92,
"b": 212
},
"hsl": {
"h": 254,
"s": 58.252,
"l": 59.608
},
"oklch": {
"l": 0.564,
"c": 0.17692,
"h": 290.3
},
"luminance": 0.16401
}Semantic roles & 50–950 ramp
primary
#785CD4
secondary
#D2DDAF
accent
#E146BD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83