#785AF6#785AF6
#785AF6 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.6% C 0.222 H 286.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #785AF6 |
|---|---|
| RGB | rgb(120, 90, 246) |
| HSL | hsl(252, 90%, 66%) |
| HSV | hsv(252, 63%, 96%) |
| CMYK | cmyk(51.2%, 63.4%, 0%, 3.5%) |
| CIE-LAB | lab(49.44, 50.73, -74.28) |
| CIE-LCH | lch(49.44, 89.94, 304.33°) |
| OKLab | oklab(58.58% 0.0618 -0.2131) |
| OKLCH | oklch(58.58% 0.222 286.2) |
| XYZ | xyz(28.0315, 17.9578, 89.1601) |
| Luminance | 0.1796 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.76
Mediumslateblue
#7B68EE
ΔE00 3.90
Light Indigo
#6D5ACF
ΔE00 5.69
Dark Periwinkle
#665FD1
ΔE00 6.04
Slate Blue
#6A5ACD
ΔE00 6.14
Purpleish Blue
#6140EF
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785AF6 #D8F65A
analogous
#5A8AF6 #785AF6 #C65AF6
triadic
#785AF6 #F6785A #5AF678
tetradic
#785AF6 #F65A8A #D8F65A #5AF6C6
square
#785AF6 #F65A8A #D8F65A #5AF6C6
split-complementary
#785AF6 #F6C65A #8AF65A
monochromatic
#300BCB #4920F3 #785AF6 #A794F9 #D7CEFC
Accessibility & contrast
On white
4.57
#785AF6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#785AF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #785AF6
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785AF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##785AF6 | 1.00 | 4.57 | 4.59 | 4.59 |
| #FFFFFF | 4.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0071F3
Tritanopia (blue-blind)
#4780A0
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #785af6; /* rgb */ color: rgb(120, 90, 246); /* oklch */ color: oklch(58.6% 0.222 286.2);
Tailwind
colors: {
custom: {
50: '#a98afa',
500: '#785af6',
950: '#000000',
},
}SCSS
$custom: #785af6; $custom-light: #a98afa; $custom-dark: #000000;
JSON
{
"hex": "#785af6",
"rgb": {
"r": 120,
"g": 90,
"b": 246
},
"hsl": {
"h": 251.538,
"s": 89.655,
"l": 65.882
},
"oklch": {
"l": 0.58577,
"c": 0.22186,
"h": 286.2
},
"luminance": 0.17959
}Semantic roles & 50–950 ramp
primary
#785AF6
secondary
#E6F0BC
accent
#E600B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85