#785BE5#785BE5
#785BE5 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.4% C 0.200 H 288.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #785BE5 |
|---|---|
| RGB | rgb(120, 91, 229) |
| HSL | hsl(253, 73%, 63%) |
| HSV | hsv(253, 60%, 90%) |
| CMYK | cmyk(47.6%, 60.3%, 0%, 10.2%) |
| CIE-LAB | lab(48.42, 45.32, -66.39) |
| CIE-LCH | lch(48.42, 80.38, 304.32°) |
| OKLab | oklab(57.45% 0.0621 -0.1899) |
| OKLCH | oklch(57.45% 0.2 288.1) |
| XYZ | xyz(25.6256, 17.1313, 76.0700) |
| Luminance | 0.1713 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.94
Light Indigo
#6D5ACF
ΔE00 3.67
Mediumslateblue
#7B68EE
ΔE00 4.14
Slate Blue
#6A5ACD
ΔE00 4.20
Dark Periwinkle
#665FD1
ΔE00 4.44
Iris
#6258C4
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785BE5 #C8E55B
analogous
#5B83E5 #785BE5 #BD5BE5
triadic
#785BE5 #E5785B #5BE578
tetradic
#785BE5 #E55B83 #C8E55B #5BE5BD
square
#785BE5 #E55B83 #C8E55B #5BE5BD
split-complementary
#785BE5 #E5BD5B #83E55B
monochromatic
#391BAB #4D26DD #785BE5 #A390ED #CFC5F6
Accessibility & contrast
On white
4.74
#785BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#785BE5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785BE5
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785BE5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785BE5 | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#547B97
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #785be5; /* rgb */ color: rgb(120, 91, 229); /* oklch */ color: oklch(57.4% 0.200 288.1);
Tailwind
colors: {
custom: {
50: '#a78bee',
500: '#785be5',
950: '#000000',
},
}SCSS
$custom: #785be5; $custom-light: #a78bee; $custom-dark: #000000;
JSON
{
"hex": "#785be5",
"rgb": {
"r": 120,
"g": 91,
"b": 229
},
"hsl": {
"h": 252.609,
"s": 72.632,
"l": 62.745
},
"oklch": {
"l": 0.57448,
"c": 0.19978,
"h": 288.1
},
"luminance": 0.17132
}Semantic roles & 50–950 ramp
primary
#785BE5
secondary
#DCE7B5
accent
#D511AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84