#786EE2#786EE2
#786EE2 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.4% C 0.170 H 284.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #786EE2 |
|---|---|
| RGB | rgb(120, 110, 226) |
| HSL | hsl(245, 67%, 66%) |
| HSV | hsv(245, 51%, 89%) |
| CMYK | cmyk(46.9%, 51.3%, 0%, 11.4%) |
| CIE-LAB | lab(52.55, 33.40, -58.05) |
| CIE-LCH | lch(52.55, 66.97, 299.92°) |
| OKLab | oklab(60.44% 0.0411 -0.1653) |
| OKLCH | oklch(60.44% 0.17 284) |
| XYZ | xyz(27.0451, 20.6346, 74.4946) |
| Luminance | 0.2064 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.51
Cornflower
#6A79F7
ΔE00 5.53
Mediumpurple
#9370DB
ΔE00 5.78
Dark Periwinkle
#665FD1
ΔE00 6.08
Light Indigo
#6D5ACF
ΔE00 7.10
Slate Blue
#6A5ACD
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EE2 #D8E26E
analogous
#6E9EE2 #786EE2 #B26EE2
triadic
#786EE2 #E2786E #6EE278
tetradic
#786EE2 #E26E9E #D8E26E #6EE2B2
square
#786EE2 #E26E9E #D8E26E #6EE2B2
split-complementary
#786EE2 #E2B26E #9EE26E
monochromatic
#3024B2 #493BD8 #786EE2 #A7A1EC #D7D4F6
Accessibility & contrast
On white
4.10
#786EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.13
#786EE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EE2
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EE2 | 1.00 | 4.10 | 5.13 | 5.13 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3681E6
Deuteranopia (green-blind)
#307ADF
Tritanopia (blue-blind)
#54879E
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #786ee2; /* rgb */ color: rgb(120, 110, 226); /* oklch */ color: oklch(60.4% 0.170 284.0);
Tailwind
colors: {
custom: {
50: '#a597ec',
500: '#786ee2',
950: '#000000',
},
}SCSS
$custom: #786ee2; $custom-light: #a597ec; $custom-dark: #000000;
JSON
{
"hex": "#786ee2",
"rgb": {
"r": 120,
"g": 110,
"b": 226
},
"hsl": {
"h": 245.172,
"s": 66.667,
"l": 65.882
},
"oklch": {
"l": 0.60435,
"c": 0.17032,
"h": 284
},
"luminance": 0.20636
}Semantic roles & 50–950 ramp
primary
#786EE2
secondary
#E6E9C3
accent
#CF17BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84