#785CD6#785CD6
#785CD6 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.179 H 290.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #785CD6 |
|---|---|
| RGB | rgb(120, 92, 214) |
| HSL | hsl(254, 60%, 60%) |
| HSV | hsv(254, 57%, 84%) |
| CMYK | cmyk(43.9%, 57%, 0%, 16.1%) |
| CIE-LAB | lab(47.63, 40.49, -59.17) |
| CIE-LCH | lch(47.63, 71.70, 304.38°) |
| OKLab | oklab(56.54% 0.0614 -0.1686) |
| OKLCH | oklch(56.54% 0.179 290) |
| XYZ | xyz(23.7071, 16.5016, 65.5413) |
| Luminance | 0.1650 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.30
Slate Blue
#6A5ACD
ΔE00 2.90
Purpley
#8756E4
ΔE00 3.50
Dark Periwinkle
#665FD1
ΔE00 3.64
Iris
#6258C4
ΔE00 4.84
Mediumslateblue
#7B68EE
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785CD6 #BAD65C
analogous
#5C7DD6 #785CD6 #B55CD6
triadic
#785CD6 #D6785C #5CD678
tetradic
#785CD6 #D65C7D #BAD65C #5CD6B5
square
#785CD6 #D65C7D #BAD65C #5CD6B5
split-complementary
#785CD6 #D6B55C #7DD65C
monochromatic
#3E2593 #5331C4 #785CD6 #A08DE2 #C9BEEF
Accessibility & contrast
On white
4.88
#785CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#785CD6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785CD6
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785CD6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785CD6 | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B73DA
Deuteranopia (green-blind)
#166ED3
Tritanopia (blue-blind)
#5C7790
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #785cd6; /* rgb */ color: rgb(120, 92, 214); /* oklch */ color: oklch(56.5% 0.179 290.0);
Tailwind
colors: {
custom: {
50: '#a58be3',
500: '#785cd6',
950: '#000000',
},
}SCSS
$custom: #785cd6; $custom-light: #a58be3; $custom-dark: #000000;
JSON
{
"hex": "#785cd6",
"rgb": {
"r": 120,
"g": 92,
"b": 214
},
"hsl": {
"h": 253.77,
"s": 59.804,
"l": 60
},
"oklch": {
"l": 0.56538,
"c": 0.17949,
"h": 290
},
"luminance": 0.16502
}Semantic roles & 50–950 ramp
primary
#785CD6
secondary
#D4DEAF
accent
#E345BF
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84