#786EE8#786EE8
#786EE8 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.178 H 283.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #786EE8 |
|---|---|
| RGB | rgb(120, 110, 232) |
| HSL | hsl(245, 73%, 67%) |
| HSV | hsv(245, 53%, 91%) |
| CMYK | cmyk(48.3%, 52.6%, 0%, 9%) |
| CIE-LAB | lab(52.92, 35.17, -60.82) |
| CIE-LCH | lch(52.92, 70.26, 300.04°) |
| OKLab | oklab(60.83% 0.0415 -0.1734) |
| OKLCH | oklch(60.83% 0.178 283.4) |
| XYZ | xyz(27.8828, 20.9697, 78.9067) |
| Luminance | 0.2097 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.07
Cornflower
#6A79F7
ΔE00 5.10
Mediumpurple
#9370DB
ΔE00 6.04
Dark Periwinkle
#665FD1
ΔE00 6.49
Periwinkle (survey)
#8E82FE
ΔE00 7.14
Light Indigo
#6D5ACF
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786EE8 #DEE86E
analogous
#6EA1E8 #786EE8 #B56EE8
triadic
#786EE8 #E8786E #6EE878
tetradic
#786EE8 #E86EA1 #DEE86E #6EE8B5
square
#786EE8 #E86EA1 #DEE86E #6EE8B5
split-complementary
#786EE8 #E8B56E #A1E86E
monochromatic
#2B1EBE #4739E0 #786EE8 #A9A3F0 #DAD8F9
Accessibility & contrast
On white
4.04
#786EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#786EE8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786EE8
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786EE8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786EE8 | 1.00 | 4.04 | 5.19 | 5.19 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E82EC
Deuteranopia (green-blind)
#267AE5
Tritanopia (blue-blind)
#5089A0
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #786ee8; /* rgb */ color: rgb(120, 110, 232); /* oklch */ color: oklch(60.8% 0.178 283.4);
Tailwind
colors: {
custom: {
50: '#a698f0',
500: '#786ee8',
950: '#000000',
},
}SCSS
$custom: #786ee8; $custom-light: #a698f0; $custom-dark: #000000;
JSON
{
"hex": "#786ee8",
"rgb": {
"r": 120,
"g": 110,
"b": 232
},
"hsl": {
"h": 244.918,
"s": 72.619,
"l": 67.059
},
"oklch": {
"l": 0.6083,
"c": 0.17833,
"h": 283.4
},
"luminance": 0.20971
}Semantic roles & 50–950 ramp
primary
#786EE8
secondary
#E9ECC6
accent
#D511C5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85