#786CF5#786CF5
#786CF5 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.4% C 0.198 H 282.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #786CF5 |
|---|---|
| RGB | rgb(120, 108, 245) |
| HSL | hsl(245, 87%, 69%) |
| HSV | hsv(245, 56%, 96%) |
| CMYK | cmyk(51%, 55.9%, 0%, 3.9%) |
| CIE-LAB | lab(53.29, 40.21, -67.49) |
| CIE-LCH | lch(53.29, 78.56, 300.79°) |
| OKLab | oklab(61.37% 0.044 -0.193) |
| OKLCH | oklch(61.37% 0.198 282.8) |
| XYZ | xyz(29.5847, 21.3091, 88.9227) |
| Luminance | 0.2131 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.71
Cornflower
#6A79F7
ΔE00 5.09
Mediumpurple
#9370DB
ΔE00 6.81
Periwinkle (survey)
#8E82FE
ΔE00 7.04
Dark Periwinkle
#665FD1
ΔE00 7.26
Purpley
#8756E4
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CF5 #E9F56C
analogous
#6CA5F5 #786CF5 #BC6CF5
triadic
#786CF5 #F5786C #6CF578
tetradic
#786CF5 #F56CA5 #E9F56C #6CF5BC
square
#786CF5 #F56CA5 #E9F56C #6CF5BC
split-complementary
#786CF5 #F5BC6C #A5F56C
monochromatic
#200FD8 #4333F1 #786CF5 #ADA5F9 #E1DFFD
Accessibility & contrast
On white
3.99
#786CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.26
#786CF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CF5
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CF5 | 1.00 | 3.99 | 5.26 | 5.26 |
| #FFFFFF | 3.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0084FA
Deuteranopia (green-blind)
#007BF2
Tritanopia (blue-blind)
#468BA6
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786cf5; /* rgb */ color: rgb(120, 108, 245); /* oklch */ color: oklch(61.4% 0.198 282.8);
Tailwind
colors: {
custom: {
50: '#a896f9',
500: '#786cf5',
950: '#000000',
},
}SCSS
$custom: #786cf5; $custom-light: #a896f9; $custom-dark: #000000;
JSON
{
"hex": "#786cf5",
"rgb": {
"r": 120,
"g": 108,
"b": 245
},
"hsl": {
"h": 245.255,
"s": 87.261,
"l": 69.216
},
"oklch": {
"l": 0.61371,
"c": 0.19799,
"h": 282.8
},
"luminance": 0.21311
}Semantic roles & 50–950 ramp
primary
#786CF5
secondary
#EFF2CA
accent
#E402D0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85