#786EF0#786EF0
#786EF0 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.189 H 282.8°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #786EF0 |
|---|---|
| RGB | rgb(120, 110, 240) |
| HSL | hsl(245, 81%, 69%) |
| HSV | hsv(245, 54%, 94%) |
| CMYK | cmyk(50%, 54.2%, 0%, 5.9%) |
| CIE-LAB | lab(53.42, 37.55, -64.48) |
| CIE-LCH | lch(53.42, 74.62, 300.21°) |
| OKLab | oklab(61.37% 0.0418 -0.1842) |
| OKLCH | oklch(61.37% 0.189 282.8) |
| XYZ | xyz(29.0451, 21.4346, 85.0280) |
| Luminance | 0.2144 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.98
Cornflower
#6A79F7
ΔE00 4.70
Mediumpurple
#9370DB
ΔE00 6.49
Periwinkle (survey)
#8E82FE
ΔE00 6.74
Dark Periwinkle
#665FD1
ΔE00 7.16
Purpley
#8756E4
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EF0 #E6F06E
analogous
#6EA5F0 #786EF0 #B96EF0
triadic
#786EF0 #F0786E #6EF078
tetradic
#786EF0 #F06EA5 #E6F06E #6EF0B9
square
#786EF0 #F06EA5 #E6F06E #6EF0B9
split-complementary
#786EF0 #F0B96E #A5F06E
monochromatic
#2415CE #4437EA #786EF0 #ACA5F6 #DFDDFB
Accessibility & contrast
On white
3.97
#786EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.29
#786EF0 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EF0
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EF0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EF0 | 1.00 | 3.97 | 5.29 | 5.29 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2084F4
Deuteranopia (green-blind)
#0E7BED
Tritanopia (blue-blind)
#4A8BA4
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #786ef0; /* rgb */ color: rgb(120, 110, 240); /* oklch */ color: oklch(61.4% 0.189 282.8);
Tailwind
colors: {
custom: {
50: '#a798f6',
500: '#786ef0',
950: '#000000',
},
}SCSS
$custom: #786ef0; $custom-light: #a798f6; $custom-dark: #000000;
JSON
{
"hex": "#786ef0",
"rgb": {
"r": 120,
"g": 110,
"b": 240
},
"hsl": {
"h": 244.615,
"s": 81.25,
"l": 68.627
},
"oklch": {
"l": 0.61368,
"c": 0.18887,
"h": 282.8
},
"luminance": 0.21436
}Semantic roles & 50–950 ramp
primary
#786EF0
secondary
#EDF0CA
accent
#DE08CD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85