#786AF5#786AF5
#786AF5 is a mid, highly saturated blue. Relative luminance 0.209; OKLCH L 61.0% C 0.201 H 283.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #786AF5 |
|---|---|
| RGB | rgb(120, 106, 245) |
| HSL | hsl(246, 87%, 69%) |
| HSV | hsv(246, 57%, 96%) |
| CMYK | cmyk(51%, 56.7%, 0%, 3.9%) |
| CIE-LAB | lab(52.83, 41.37, -68.22) |
| CIE-LCH | lch(52.83, 79.79, 301.23°) |
| OKLab | oklab(61.03% 0.046 -0.1952) |
| OKLCH | oklch(61.03% 0.201 283.3) |
| XYZ | xyz(29.3762, 20.8921, 88.8532) |
| Luminance | 0.2089 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.29
Cornflower
#6A79F7
ΔE00 5.61
Mediumpurple
#9370DB
ΔE00 6.86
Purpley
#8756E4
ΔE00 6.88
Dark Periwinkle
#665FD1
ΔE00 6.93
Periwinkle (survey)
#8E82FE
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AF5 #E7F56A
analogous
#6AA2F5 #786AF5 #BE6AF5
triadic
#786AF5 #F5786A #6AF578
tetradic
#786AF5 #F56AA2 #E7F56A #6AF5BE
square
#786AF5 #F56AA2 #E7F56A #6AF5BE
split-complementary
#786AF5 #F5BE6A #A2F56A
monochromatic
#230ED6 #4431F1 #786AF5 #ACA3F9 #E0DDFD
Accessibility & contrast
On white
4.05
#786AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#786AF5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AF5
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AF5 | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#468AA5
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786af5; /* rgb */ color: rgb(120, 106, 245); /* oklch */ color: oklch(61.0% 0.201 283.3);
Tailwind
colors: {
custom: {
50: '#a895f9',
500: '#786af5',
950: '#000000',
},
}SCSS
$custom: #786af5; $custom-light: #a895f9; $custom-dark: #000000;
JSON
{
"hex": "#786af5",
"rgb": {
"r": 120,
"g": 106,
"b": 245
},
"hsl": {
"h": 246.043,
"s": 87.421,
"l": 68.824
},
"oklch": {
"l": 0.61034,
"c": 0.20058,
"h": 283.3
},
"luminance": 0.20894
}Semantic roles & 50–950 ramp
primary
#786AF5
secondary
#EEF2C9
accent
#E402CD
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85