#786DF5#786DF5
#786DF5 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.5% C 0.197 H 282.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #786DF5 |
|---|---|
| RGB | rgb(120, 109, 245) |
| HSL | hsl(245, 87%, 69%) |
| HSV | hsv(245, 56%, 96%) |
| CMYK | cmyk(51%, 55.5%, 0%, 3.9%) |
| CIE-LAB | lab(53.52, 39.62, -67.12) |
| CIE-LCH | lch(53.52, 77.94, 300.56°) |
| OKLab | oklab(61.54% 0.0429 -0.192) |
| OKLCH | oklch(61.54% 0.197 282.6) |
| XYZ | xyz(29.6908, 21.5213, 88.9580) |
| Luminance | 0.2152 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.95
Cornflower
#6A79F7
ΔE00 4.83
Periwinkle (survey)
#8E82FE
ΔE00 6.79
Mediumpurple
#9370DB
ΔE00 6.81
Dark Periwinkle
#665FD1
ΔE00 7.44
Purpley
#8756E4
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786DF5 #EAF56D
analogous
#6DA6F5 #786DF5 #BC6DF5
triadic
#786DF5 #F5786D #6DF578
tetradic
#786DF5 #F56DA6 #EAF56D #6DF5BC
square
#786DF5 #F56DA6 #EAF56D #6DF5BC
split-complementary
#786DF5 #F5BC6D #A6F56D
monochromatic
#1F0FD9 #4334F1 #786DF5 #ADA6F9 #E2E0FD
Accessibility & contrast
On white
3.96
#786DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.30
#786DF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786DF5
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786DF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786DF5 | 1.00 | 3.96 | 5.30 | 5.30 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0884FA
Deuteranopia (green-blind)
#007BF2
Tritanopia (blue-blind)
#468CA7
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786df5; /* rgb */ color: rgb(120, 109, 245); /* oklch */ color: oklch(61.5% 0.197 282.6);
Tailwind
colors: {
custom: {
50: '#a897f9',
500: '#786df5',
950: '#000000',
},
}SCSS
$custom: #786df5; $custom-light: #a897f9; $custom-dark: #000000;
JSON
{
"hex": "#786df5",
"rgb": {
"r": 120,
"g": 109,
"b": 245
},
"hsl": {
"h": 244.853,
"s": 87.179,
"l": 69.412
},
"oklch": {
"l": 0.61541,
"c": 0.1967,
"h": 282.6
},
"luminance": 0.21523
}Semantic roles & 50–950 ramp
primary
#786DF5
secondary
#EFF2CB
accent
#E402D1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85