#786CC6#786CC6
#786CC6 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.3% C 0.135 H 287.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #786CC6 |
|---|---|
| RGB | rgb(120, 108, 198) |
| HSL | hsl(248, 44%, 60%) |
| HSV | hsv(248, 45%, 78%) |
| CMYK | cmyk(39.4%, 45.5%, 0%, 22.4%) |
| CIE-LAB | lab(50.45, 26.51, -45.50) |
| CIE-LCH | lch(50.45, 52.66, 300.23°) |
| OKLab | oklab(58.34% 0.0407 -0.1285) |
| OKLCH | oklch(58.34% 0.135 287.6) |
| XYZ | xyz(23.2985, 18.7947, 55.8153) |
| Luminance | 0.1880 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.66
Mediumpurple
#9370DB
ΔE00 6.16
Mediumslateblue
#7B68EE
ΔE00 6.16
Light Indigo
#6D5ACF
ΔE00 6.26
Slate Blue
#6A5ACD
ΔE00 6.37
Iris
#6258C4
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CC6 #BAC66C
analogous
#6C8DC6 #786CC6 #A56CC6
triadic
#786CC6 #C6786C #6CC678
tetradic
#786CC6 #C66C8D #BAC66C #6CC6A5
square
#786CC6 #C66C8D #BAC66C #6CC6A5
split-complementary
#786CC6 #C6A56C #8DC66C
monochromatic
#3E3384 #5344B0 #786CC6 #A098D7 #C9C4E8
Accessibility & contrast
On white
4.41
#786CC6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#786CC6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CC6
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CC6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CC6 | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B7AC9
Deuteranopia (green-blind)
#4A76C4
Tritanopia (blue-blind)
#627E8F
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #786cc6; /* rgb */ color: rgb(120, 108, 198); /* oklch */ color: oklch(58.3% 0.135 287.6);
Tailwind
colors: {
custom: {
50: '#a296d8',
500: '#786cc6',
950: '#000000',
},
}SCSS
$custom: #786cc6; $custom-light: #a296d8; $custom-dark: #000000;
JSON
{
"hex": "#786cc6",
"rgb": {
"r": 120,
"g": 108,
"b": 198
},
"hsl": {
"h": 248,
"s": 44.118,
"l": 60
},
"oklch": {
"l": 0.58335,
"c": 0.13479,
"h": 287.6
},
"luminance": 0.18795
}Semantic roles & 50–950 ramp
primary
#786CC6
secondary
#D4D8B6
accent
#D454C3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83