#785EF2#785EF2
#785EF2 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.9% C 0.212 H 285.9°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #785EF2 |
|---|---|
| RGB | rgb(120, 94, 242) |
| HSL | hsl(251, 85%, 66%) |
| HSV | hsv(251, 61%, 95%) |
| CMYK | cmyk(50.4%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(49.99, 47.35, -71.16) |
| CIE-LCH | lch(49.99, 85.47, 303.64°) |
| OKLab | oklab(58.88% 0.0583 -0.2039) |
| OKLCH | oklch(58.88% 0.212 285.9) |
| XYZ | xyz(27.7707, 18.4079, 86.0770) |
| Luminance | 0.1841 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.86
Purpley
#8756E4
ΔE00 4.00
Light Indigo
#6D5ACF
ΔE00 5.46
Dark Periwinkle
#665FD1
ΔE00 5.57
Slate Blue
#6A5ACD
ΔE00 5.91
Lighter Purple
#A55AF4
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785EF2 #D8F25E
analogous
#5E8EF2 #785EF2 #C25EF2
triadic
#785EF2 #F2785E #5EF278
tetradic
#785EF2 #F25E8E #D8F25E #5EF2C2
square
#785EF2 #F25E8E #D8F25E #5EF2C2
split-complementary
#785EF2 #F2C25E #8EF25E
monochromatic
#3010C6 #4925ED #785EF2 #A797F7 #D7CFFB
Accessibility & contrast
On white
4.49
#785EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#785EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #785EF2
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##785EF2 | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#4A819F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #785ef2; /* rgb */ color: rgb(120, 94, 242); /* oklch */ color: oklch(58.9% 0.212 285.9);
Tailwind
colors: {
custom: {
50: '#a88df7',
500: '#785ef2',
950: '#000000',
},
}SCSS
$custom: #785ef2; $custom-light: #a88df7; $custom-dark: #000000;
JSON
{
"hex": "#785ef2",
"rgb": {
"r": 120,
"g": 94,
"b": 242
},
"hsl": {
"h": 250.541,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.5888,
"c": 0.21207,
"h": 285.9
},
"luminance": 0.18409
}Semantic roles & 50–950 ramp
primary
#785EF2
secondary
#E6EEBD
accent
#E204BB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85