#785DCD#785DCD
#785DCD is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.166 H 291.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #785DCD |
|---|---|
| RGB | rgb(120, 93, 205) |
| HSL | hsl(254, 53%, 58%) |
| HSV | hsv(254, 55%, 80%) |
| CMYK | cmyk(41.5%, 54.6%, 0%, 19.6%) |
| CIE-LAB | lab(47.27, 37.38, -54.59) |
| CIE-LCH | lch(47.27, 66.16, 304.40°) |
| OKLab | oklab(56.09% 0.0601 -0.1552) |
| OKLCH | oklch(56.09% 0.166 291.2) |
| XYZ | xyz(22.6765, 16.2289, 59.6835) |
| Luminance | 0.1623 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.31
Slate Blue
#6A5ACD
ΔE00 2.79
Dark Periwinkle
#665FD1
ΔE00 3.73
Purpley
#8756E4
ΔE00 4.42
Iris
#6258C4
ΔE00 4.47
Mediumslateblue
#7B68EE
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785DCD #B2CD5D
analogous
#5D7ACD #785DCD #B05DCD
triadic
#785DCD #CD785D #5DCD78
tetradic
#785DCD #CD5D7A #B2CD5D #5DCDB0
square
#785DCD #CD5D7A #B2CD5D #5DCDB0
split-complementary
#785DCD #CDB05D #7ACD5D
monochromatic
#402986 #5638B5 #785DCD #9F8CDB #C6BBEA
Accessibility & contrast
On white
4.95
#785DCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#785DCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785DCD
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785DCD | 1.00 | 4.95 | 4.25 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2572D1
Deuteranopia (green-blind)
#2B6ECB
Tritanopia (blue-blind)
#61758C
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #785dcd; /* rgb */ color: rgb(120, 93, 205); /* oklch */ color: oklch(56.1% 0.166 291.2);
Tailwind
colors: {
custom: {
50: '#a48bdd',
500: '#785dcd',
950: '#000000',
},
}SCSS
$custom: #785dcd; $custom-light: #a48bdd; $custom-dark: #000000;
JSON
{
"hex": "#785dcd",
"rgb": {
"r": 120,
"g": 93,
"b": 205
},
"hsl": {
"h": 254.464,
"s": 52.83,
"l": 58.431
},
"oklch": {
"l": 0.56093,
"c": 0.16643,
"h": 291.2
},
"luminance": 0.1623
}Semantic roles & 50–950 ramp
primary
#785DCD
secondary
#CED9AD
accent
#DC4CB9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83