#785EE5#785EE5
#785EE5 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.9% C 0.196 H 287.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #785EE5 |
|---|---|
| RGB | rgb(120, 94, 229) |
| HSL | hsl(252, 72%, 63%) |
| HSV | hsv(252, 59%, 90%) |
| CMYK | cmyk(47.6%, 59%, 0%, 10.2%) |
| CIE-LAB | lab(49.07, 43.61, -65.34) |
| CIE-LCH | lch(49.07, 78.55, 303.72°) |
| OKLab | oklab(57.92% 0.0589 -0.1868) |
| OKLCH | oklch(57.92% 0.196 287.5) |
| XYZ | xyz(25.8872, 17.6545, 76.1572) |
| Luminance | 0.1766 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.34
Purpley
#8756E4
ΔE00 3.40
Light Indigo
#6D5ACF
ΔE00 3.90
Dark Periwinkle
#665FD1
ΔE00 4.30
Slate Blue
#6A5ACD
ΔE00 4.39
Iris
#6258C4
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785EE5 #CBE55E
analogous
#5E87E5 #785EE5 #BC5EE5
triadic
#785EE5 #E5785E #5EE578
tetradic
#785EE5 #E55E87 #CBE55E #5EE5BC
square
#785EE5 #E55E87 #CBE55E #5EE5BC
split-complementary
#785EE5 #E5BC5E #87E55E
monochromatic
#381CAD #4C29DC #785EE5 #A493EE #D0C7F6
Accessibility & contrast
On white
4.63
#785EE5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.53
#785EE5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #785EE5
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785EE5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785EE5 | 1.00 | 4.63 | 4.53 | 4.63 |
| #FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#537D99
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #785ee5; /* rgb */ color: rgb(120, 94, 229); /* oklch */ color: oklch(57.9% 0.196 287.5);
Tailwind
colors: {
custom: {
50: '#a68dee',
500: '#785ee5',
950: '#000000',
},
}SCSS
$custom: #785ee5; $custom-light: #a68dee; $custom-dark: #000000;
JSON
{
"hex": "#785ee5",
"rgb": {
"r": 120,
"g": 94,
"b": 229
},
"hsl": {
"h": 251.556,
"s": 72.193,
"l": 63.333
},
"oklch": {
"l": 0.57923,
"c": 0.19586,
"h": 287.5
},
"luminance": 0.17656
}Semantic roles & 50–950 ramp
primary
#785EE5
secondary
#DEE7B7
accent
#D411AF
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84