#786BF5#786BF5
#786BF5 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.2% C 0.199 H 283.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #786BF5 |
|---|---|
| RGB | rgb(120, 107, 245) |
| HSL | hsl(246, 87%, 69%) |
| HSV | hsv(246, 56%, 96%) |
| CMYK | cmyk(51%, 56.3%, 0%, 3.9%) |
| CIE-LAB | lab(53.06, 40.79, -67.85) |
| CIE-LCH | lch(53.06, 79.17, 301.01°) |
| OKLab | oklab(61.2% 0.045 -0.1941) |
| OKLCH | oklch(61.2% 0.199 283.1) |
| XYZ | xyz(29.4799, 21.0994, 88.8877) |
| Luminance | 0.2110 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.48
Cornflower
#6A79F7
ΔE00 5.35
Mediumpurple
#9370DB
ΔE00 6.83
Dark Periwinkle
#665FD1
ΔE00 7.09
Purpley
#8756E4
ΔE00 7.14
Periwinkle (survey)
#8E82FE
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BF5 #E8F56B
analogous
#6BA3F5 #786BF5 #BD6BF5
triadic
#786BF5 #F5786B #6BF578
tetradic
#786BF5 #F56BA3 #E8F56B #6BF5BD
square
#786BF5 #F56BA3 #E8F56B #6BF5BD
split-complementary
#786BF5 #F5BD6B #A3F56B
monochromatic
#210FD7 #4432F1 #786BF5 #ACA4F9 #E1DEFD
Accessibility & contrast
On white
4.02
#786BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#786BF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BF5
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BF5 | 1.00 | 4.02 | 5.22 | 5.22 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#468BA6
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786bf5; /* rgb */ color: rgb(120, 107, 245); /* oklch */ color: oklch(61.2% 0.199 283.1);
Tailwind
colors: {
custom: {
50: '#a896f9',
500: '#786bf5',
950: '#000000',
},
}SCSS
$custom: #786bf5; $custom-light: #a896f9; $custom-dark: #000000;
JSON
{
"hex": "#786bf5",
"rgb": {
"r": 120,
"g": 107,
"b": 245
},
"hsl": {
"h": 245.652,
"s": 87.342,
"l": 69.02
},
"oklch": {
"l": 0.61202,
"c": 0.19929,
"h": 283.1
},
"luminance": 0.21101
}Semantic roles & 50–950 ramp
primary
#786BF5
secondary
#EEF2CA
accent
#E402CF
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#100D17
muted
#7F7E85