#786AC3#786AC3
#786AC3 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.8% C 0.134 H 288.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #786AC3 |
|---|---|
| RGB | rgb(120, 106, 195) |
| HSL | hsl(249, 43%, 59%) |
| HSV | hsv(249, 46%, 76%) |
| CMYK | cmyk(38.5%, 45.6%, 0%, 23.5%) |
| CIE-LAB | lab(49.79, 26.87, -44.83) |
| CIE-LCH | lch(49.79, 52.26, 300.94°) |
| OKLab | oklab(57.78% 0.0429 -0.1265) |
| OKLCH | oklch(57.78% 0.134 288.7) |
| XYZ | xyz(22.7474, 18.2406, 53.9414) |
| Luminance | 0.1824 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.50
Light Indigo
#6D5ACF
ΔE00 5.87
Slate Blue
#6A5ACD
ΔE00 5.98
Mediumpurple
#9370DB
ΔE00 6.45
Mediumslateblue
#7B68EE
ΔE00 6.58
Iris
#6258C4
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AC3 #B5C36A
analogous
#6A89C3 #786AC3 #A56AC3
triadic
#786AC3 #C3786A #6AC378
tetradic
#786AC3 #C36A89 #B5C36A #6AC3A5
square
#786AC3 #C36A89 #B5C36A #6AC3A5
split-complementary
#786AC3 #C3A56A #89C36A
monochromatic
#3F337F #5545AB #786AC3 #A096D5 #C7C1E6
Accessibility & contrast
On white
4.52
#786AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#786AC3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AC3
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AC3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AC3 | 1.00 | 4.52 | 4.65 | 4.65 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A78C6
Deuteranopia (green-blind)
#4A74C1
Tritanopia (blue-blind)
#647C8D
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #786ac3; /* rgb */ color: rgb(120, 106, 195); /* oklch */ color: oklch(57.8% 0.134 288.7);
Tailwind
colors: {
custom: {
50: '#a294d5',
500: '#786ac3',
950: '#000000',
},
}SCSS
$custom: #786ac3; $custom-light: #a294d5; $custom-dark: #000000;
JSON
{
"hex": "#786ac3",
"rgb": {
"r": 120,
"g": 106,
"b": 195
},
"hsl": {
"h": 249.438,
"s": 42.584,
"l": 59.02
},
"oklch": {
"l": 0.57784,
"c": 0.1336,
"h": 288.7
},
"luminance": 0.18241
}Semantic roles & 50–950 ramp
primary
#786AC3
secondary
#D0D6B3
accent
#D255BF
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83