#785EF6#785EF6
#785EF6 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.2% C 0.217 H 285.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #785EF6 |
|---|---|
| RGB | rgb(120, 94, 246) |
| HSL | hsl(250, 89%, 67%) |
| HSV | hsv(250, 62%, 96%) |
| CMYK | cmyk(51.2%, 61.8%, 0%, 3.5%) |
| CIE-LAB | lab(50.28, 48.51, -72.92) |
| CIE-LCH | lch(50.28, 87.58, 303.63°) |
| OKLab | oklab(59.18% 0.058 -0.2091) |
| OKLCH | oklch(59.18% 0.217 285.5) |
| XYZ | xyz(28.3780, 18.6508, 89.2756) |
| Luminance | 0.1865 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.89
Purpley
#8756E4
ΔE00 4.29
Light Indigo
#6D5ACF
ΔE00 5.95
Dark Periwinkle
#665FD1
ΔE00 6.00
Slate Blue
#6A5ACD
ΔE00 6.39
Lighter Purple
#A55AF4
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785EF6 #DCF65E
analogous
#5E90F6 #785EF6 #C45EF6
triadic
#785EF6 #F6785E #5EF678
tetradic
#785EF6 #F65E90 #DCF65E #5EF6C4
square
#785EF6 #F65E90 #DCF65E #5EF6C4
split-complementary
#785EF6 #F6C45E #90F65E
monochromatic
#2D0CCE #4724F3 #785EF6 #A998F9 #D9D2FC
Accessibility & contrast
On white
4.44
#785EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#785EF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #785EF6
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##785EF6 | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#4783A1
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #785ef6; /* rgb */ color: rgb(120, 94, 246); /* oklch */ color: oklch(59.2% 0.217 285.5);
Tailwind
colors: {
custom: {
50: '#a98dfa',
500: '#785ef6',
950: '#000000',
},
}SCSS
$custom: #785ef6; $custom-light: #a98dfa; $custom-dark: #000000;
JSON
{
"hex": "#785ef6",
"rgb": {
"r": 120,
"g": 94,
"b": 246
},
"hsl": {
"h": 250.263,
"s": 89.412,
"l": 66.667
},
"oklch": {
"l": 0.59181,
"c": 0.21699,
"h": 285.5
},
"luminance": 0.18652
}Semantic roles & 50–950 ramp
primary
#785EF6
secondary
#E8F0BF
accent
#E600BE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85