#786EE6#786EE6
#786EE6 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.176 H 283.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #786EE6 |
|---|---|
| RGB | rgb(120, 110, 230) |
| HSL | hsl(245, 71%, 67%) |
| HSV | hsv(245, 52%, 90%) |
| CMYK | cmyk(47.8%, 52.2%, 0%, 9.8%) |
| CIE-LAB | lab(52.79, 34.58, -59.90) |
| CIE-LCH | lch(52.79, 69.17, 300.00°) |
| OKLab | oklab(60.7% 0.0414 -0.1707) |
| OKLCH | oklch(60.7% 0.176 283.6) |
| XYZ | xyz(27.6003, 20.8567, 77.4190) |
| Luminance | 0.2086 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.19
Cornflower
#6A79F7
ΔE00 5.23
Mediumpurple
#9370DB
ΔE00 5.94
Dark Periwinkle
#665FD1
ΔE00 6.35
Periwinkle (survey)
#8E82FE
ΔE00 7.27
Light Indigo
#6D5ACF
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EE6 #DCE66E
analogous
#6EA0E6 #786EE6 #B46EE6
triadic
#786EE6 #E6786E #6EE678
tetradic
#786EE6 #E66EA0 #DCE66E #6EE6B4
square
#786EE6 #E66EA0 #DCE66E #6EE6B4
split-complementary
#786EE6 #E6B46E #A0E66E
monochromatic
#2D20BA #473ADD #786EE6 #A9A2EF #D9D6F8
Accessibility & contrast
On white
4.06
#786EE6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#786EE6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EE6
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EE6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EE6 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3182EA
Deuteranopia (green-blind)
#2A7AE3
Tritanopia (blue-blind)
#5188A0
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786ee6; /* rgb */ color: rgb(120, 110, 230); /* oklch */ color: oklch(60.7% 0.176 283.6);
Tailwind
colors: {
custom: {
50: '#a698ef',
500: '#786ee6',
950: '#000000',
},
}SCSS
$custom: #786ee6; $custom-light: #a698ef; $custom-dark: #000000;
JSON
{
"hex": "#786ee6",
"rgb": {
"r": 120,
"g": 110,
"b": 230
},
"hsl": {
"h": 245,
"s": 70.588,
"l": 66.667
},
"oklch": {
"l": 0.60697,
"c": 0.17567,
"h": 283.6
},
"luminance": 0.20858
}Semantic roles & 50–950 ramp
primary
#786EE6
secondary
#E8EBC5
accent
#D313C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84