#786AC1#786AC1
#786AC1 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.7% C 0.131 H 289.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #786AC1 |
|---|---|
| RGB | rgb(120, 106, 193) |
| HSL | hsl(250, 41%, 59%) |
| HSV | hsv(250, 45%, 76%) |
| CMYK | cmyk(37.8%, 45.1%, 0%, 24.3%) |
| CIE-LAB | lab(49.68, 26.31, -43.85) |
| CIE-LCH | lch(49.68, 51.14, 300.97°) |
| OKLab | oklab(57.67% 0.0426 -0.1237) |
| OKLCH | oklch(57.67% 0.131 289) |
| XYZ | xyz(22.5228, 18.1507, 52.7585) |
| Luminance | 0.1815 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.71
Light Indigo
#6D5ACF
ΔE00 6.04
Slate Blue
#6A5ACD
ΔE00 6.14
Mediumpurple
#9370DB
ΔE00 6.61
Mediumslateblue
#7B68EE
ΔE00 6.93
Iris
#6258C4
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786AC1 #B3C16A
analogous
#6A87C1 #786AC1 #A36AC1
triadic
#786AC1 #C1786A #6AC178
tetradic
#786AC1 #C16A87 #B3C16A #6AC1A3
square
#786AC1 #C16A87 #B3C16A #6AC1A3
split-complementary
#786AC1 #C1A36A #87C16A
monochromatic
#40347D #5646A8 #786AC1 #9F95D3 #C6C0E5
Accessibility & contrast
On white
4.54
#786AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.63
#786AC1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786AC1
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786AC1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786AC1 | 1.00 | 4.54 | 4.63 | 4.63 |
| #FFFFFF | 4.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B78C4
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#657B8C
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #786ac1; /* rgb */ color: rgb(120, 106, 193); /* oklch */ color: oklch(57.7% 0.131 289.0);
Tailwind
colors: {
custom: {
50: '#a294d4',
500: '#786ac1',
950: '#000000',
},
}SCSS
$custom: #786ac1; $custom-light: #a294d4; $custom-dark: #000000;
JSON
{
"hex": "#786ac1",
"rgb": {
"r": 120,
"g": 106,
"b": 193
},
"hsl": {
"h": 249.655,
"s": 41.232,
"l": 58.627
},
"oklch": {
"l": 0.57667,
"c": 0.1308,
"h": 289
},
"luminance": 0.18151
}Semantic roles & 50–950 ramp
primary
#786AC1
secondary
#CFD5B2
accent
#D157BD
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83