#785AF3#785AF3
#785AF3 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.218 H 286.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #785AF3 |
|---|---|
| RGB | rgb(120, 90, 243) |
| HSL | hsl(252, 86%, 65%) |
| HSV | hsv(252, 63%, 95%) |
| CMYK | cmyk(50.6%, 63%, 0%, 4.7%) |
| CIE-LAB | lab(49.22, 49.87, -72.96) |
| CIE-LCH | lch(49.22, 88.38, 304.35°) |
| OKLab | oklab(58.35% 0.0621 -0.2092) |
| OKLCH | oklch(58.35% 0.218 286.5) |
| XYZ | xyz(27.5748, 17.7751, 86.7546) |
| Luminance | 0.1778 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.52
Mediumslateblue
#7B68EE
ΔE00 3.91
Light Indigo
#6D5ACF
ΔE00 5.32
Dark Periwinkle
#665FD1
ΔE00 5.74
Slate Blue
#6A5ACD
ΔE00 5.78
Purpleish Blue
#6140EF
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785AF3 #D5F35A
analogous
#5A88F3 #785AF3 #C55AF3
triadic
#785AF3 #F3785A #5AF378
tetradic
#785AF3 #F35A88 #D5F35A #5AF3C5
square
#785AF3 #F35A88 #D5F35A #5AF3C5
split-complementary
#785AF3 #F3C55A #88F35A
monochromatic
#320EC4 #4921EF #785AF3 #A793F7 #D5CCFB
Accessibility & contrast
On white
4.61
#785AF3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.56
#785AF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #785AF3
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785AF3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785AF3 | 1.00 | 4.61 | 4.56 | 4.61 |
| #FFFFFF | 4.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079F8
Deuteranopia (green-blind)
#0071F0
Tritanopia (blue-blind)
#4A7F9E
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #785af3; /* rgb */ color: rgb(120, 90, 243); /* oklch */ color: oklch(58.3% 0.218 286.5);
Tailwind
colors: {
custom: {
50: '#a88af8',
500: '#785af3',
950: '#000000',
},
}SCSS
$custom: #785af3; $custom-light: #a88af8; $custom-dark: #000000;
JSON
{
"hex": "#785af3",
"rgb": {
"r": 120,
"g": 90,
"b": 243
},
"hsl": {
"h": 251.765,
"s": 86.441,
"l": 65.294
},
"oklch": {
"l": 0.58346,
"c": 0.21824,
"h": 286.5
},
"luminance": 0.17776
}Semantic roles & 50–950 ramp
primary
#785AF3
secondary
#E4EEBB
accent
#E303B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85