#786AC8#786AC8
#786AC8 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.1% C 0.141 H 288.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #786AC8 |
|---|---|
| RGB | rgb(120, 106, 200) |
| HSL | hsl(249, 46%, 60%) |
| HSV | hsv(249, 47%, 78%) |
| CMYK | cmyk(40%, 47%, 0%, 21.6%) |
| CIE-LAB | lab(50.06, 28.28, -47.26) |
| CIE-LCH | lch(50.06, 55.07, 300.89°) |
| OKLab | oklab(58.08% 0.0436 -0.1336) |
| OKLCH | oklch(58.08% 0.141 288) |
| XYZ | xyz(23.3222, 18.4705, 56.9687) |
| Luminance | 0.1847 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.06
Light Indigo
#6D5ACF
ΔE00 5.54
Slate Blue
#6A5ACD
ΔE00 5.69
Mediumslateblue
#7B68EE
ΔE00 5.72
Mediumpurple
#9370DB
ΔE00 6.10
Iris
#6258C4
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AC8 #BAC86A
analogous
#6A8BC8 #786AC8 #A76AC8
triadic
#786AC8 #C8786A #6AC878
tetradic
#786AC8 #C86A8B #BAC86A #6AC8A7
square
#786AC8 #C86A8B #BAC86A #6AC8A7
split-complementary
#786AC8 #C8A76A #8BC86A
monochromatic
#3E3286 #5342B3 #786AC8 #A197D8 #C9C3E9
Accessibility & contrast
On white
4.47
#786AC8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.69
#786AC8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AC8
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AC8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AC8 | 1.00 | 4.47 | 4.69 | 4.69 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#4675C6
Tritanopia (blue-blind)
#627D8F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #786ac8; /* rgb */ color: rgb(120, 106, 200); /* oklch */ color: oklch(58.1% 0.141 288.0);
Tailwind
colors: {
custom: {
50: '#a394d9',
500: '#786ac8',
950: '#000000',
},
}SCSS
$custom: #786ac8; $custom-light: #a394d9; $custom-dark: #000000;
JSON
{
"hex": "#786ac8",
"rgb": {
"r": 120,
"g": 106,
"b": 200
},
"hsl": {
"h": 248.936,
"s": 46.078,
"l": 60
},
"oklch": {
"l": 0.58081,
"c": 0.14057,
"h": 288
},
"luminance": 0.18471
}Semantic roles & 50–950 ramp
primary
#786AC8
secondary
#D4D9B5
accent
#D652C2
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D15
muted
#7F7E83