#786CF4#786CF4
#786CF4 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.3% C 0.197 H 282.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #786CF4 |
|---|---|
| RGB | rgb(120, 108, 244) |
| HSL | hsl(245, 86%, 69%) |
| HSV | hsv(245, 56%, 96%) |
| CMYK | cmyk(50.8%, 55.7%, 0%, 4.3%) |
| CIE-LAB | lab(53.22, 39.91, -67.04) |
| CIE-LCH | lch(53.22, 78.02, 300.77°) |
| OKLab | oklab(61.3% 0.044 -0.1917) |
| OKLCH | oklch(61.3% 0.197 282.9) |
| XYZ | xyz(29.4325, 21.2482, 88.1209) |
| Luminance | 0.2125 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.63
Cornflower
#6A79F7
ΔE00 5.11
Mediumpurple
#9370DB
ΔE00 6.75
Periwinkle (survey)
#8E82FE
ΔE00 7.08
Dark Periwinkle
#665FD1
ΔE00 7.16
Purpley
#8756E4
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CF4 #E8F46C
analogous
#6CA4F4 #786CF4 #BC6CF4
triadic
#786CF4 #F4786C #6CF478
tetradic
#786CF4 #F46CA4 #E8F46C #6CF4BC
square
#786CF4 #F46CA4 #E8F46C #6CF4BC
split-complementary
#786CF4 #F4BC6C #A4F46C
monochromatic
#2110D6 #4433F0 #786CF4 #ACA5F8 #E1DEFD
Accessibility & contrast
On white
4.00
#786CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#786CF4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CF4
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CF4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CF4 | 1.00 | 4.00 | 5.25 | 5.25 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0484F9
Deuteranopia (green-blind)
#007BF1
Tritanopia (blue-blind)
#478BA6
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #786cf4; /* rgb */ color: rgb(120, 108, 244); /* oklch */ color: oklch(61.3% 0.197 282.9);
Tailwind
colors: {
custom: {
50: '#a796f9',
500: '#786cf4',
950: '#000000',
},
}SCSS
$custom: #786cf4; $custom-light: #a796f9; $custom-dark: #000000;
JSON
{
"hex": "#786cf4",
"rgb": {
"r": 120,
"g": 108,
"b": 244
},
"hsl": {
"h": 245.294,
"s": 86.076,
"l": 69.02
},
"oklch": {
"l": 0.61301,
"c": 0.1967,
"h": 282.9
},
"luminance": 0.2125
}Semantic roles & 50–950 ramp
primary
#786CF4
secondary
#EEF2CA
accent
#E303CF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85