#786EE3#786EE3
#786EE3 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.5% C 0.172 H 283.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #786EE3 |
|---|---|
| RGB | rgb(120, 110, 227) |
| HSL | hsl(245, 68%, 66%) |
| HSV | hsv(245, 52%, 89%) |
| CMYK | cmyk(47.1%, 51.5%, 0%, 11%) |
| CIE-LAB | lab(52.61, 33.70, -58.51) |
| CIE-LCH | lch(52.61, 67.52, 299.94°) |
| OKLab | oklab(60.5% 0.0412 -0.1666) |
| OKLCH | oklch(60.5% 0.172 283.9) |
| XYZ | xyz(27.1827, 20.6897, 75.2194) |
| Luminance | 0.2069 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.42
Cornflower
#6A79F7
ΔE00 5.45
Mediumpurple
#9370DB
ΔE00 5.82
Dark Periwinkle
#665FD1
ΔE00 6.14
Light Indigo
#6D5ACF
ΔE00 7.16
Slate Blue
#6A5ACD
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EE3 #D9E36E
analogous
#6E9EE3 #786EE3 #B26EE3
triadic
#786EE3 #E3786E #6EE378
tetradic
#786EE3 #E36E9E #D9E36E #6EE3B2
square
#786EE3 #E36E9E #D9E36E #6EE3B2
split-complementary
#786EE3 #E3B26E #9EE36E
monochromatic
#2F23B4 #483BD9 #786EE3 #A8A1ED #D8D5F7
Accessibility & contrast
On white
4.09
#786EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#786EE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EE3
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EE3 | 1.00 | 4.09 | 5.14 | 5.14 |
| #FFFFFF | 4.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3581E7
Deuteranopia (green-blind)
#2F7AE0
Tritanopia (blue-blind)
#53879E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786ee3; /* rgb */ color: rgb(120, 110, 227); /* oklch */ color: oklch(60.5% 0.172 283.9);
Tailwind
colors: {
custom: {
50: '#a597ec',
500: '#786ee3',
950: '#000000',
},
}SCSS
$custom: #786ee3; $custom-light: #a597ec; $custom-dark: #000000;
JSON
{
"hex": "#786ee3",
"rgb": {
"r": 120,
"g": 110,
"b": 227
},
"hsl": {
"h": 245.128,
"s": 67.63,
"l": 66.078
},
"oklch": {
"l": 0.60501,
"c": 0.17166,
"h": 283.9
},
"luminance": 0.20691
}Semantic roles & 50–950 ramp
primary
#786EE3
secondary
#E6EAC3
accent
#D016C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84