#786FB9#786FB9
#786FB9 is a mid, moderate blue. Relative luminance 0.189; OKLCH L 58.2% C 0.112 H 288.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #786FB9 |
|---|---|
| RGB | rgb(120, 111, 185) |
| HSL | hsl(247, 35%, 58%) |
| HSV | hsv(247, 40%, 73%) |
| CMYK | cmyk(35.1%, 40%, 0%, 27.5%) |
| CIE-LAB | lab(50.53, 21.09, -37.89) |
| CIE-LCH | lch(50.53, 43.37, 299.10°) |
| OKLab | oklab(58.18% 0.0345 -0.1063) |
| OKLCH | oklch(58.18% 0.112 288) |
| XYZ | xyz(22.1848, 18.8641, 48.3618) |
| Luminance | 0.1887 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Deep Lilac
#966EBD
ΔE00 7.33
Mediumpurple
#9370DB
ΔE00 7.49
Dark Periwinkle
#665FD1
ΔE00 7.78
Deep Lavender
#8D5EB7
ΔE00 8.13
Light Indigo
#6D5ACF
ΔE00 8.33
Slate Blue
#6A5ACD
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786FB9 #B0B96F
analogous
#6F8BB9 #786FB9 #9D6FB9
triadic
#786FB9 #B9786F #6FB978
tetradic
#786FB9 #B96F8B #B0B96F #6FB99D
square
#786FB9 #B96F8B #B0B96F #6FB99D
split-complementary
#786FB9 #B99D6F #8BB96F
monochromatic
#403975 #574D9E #786FB9 #9F98CD #C5C1E1
Accessibility & contrast
On white
4.40
#786FB9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#786FB9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786FB9
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786FB9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786FB9 | 1.00 | 4.40 | 4.77 | 4.77 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#587ABC
Deuteranopia (green-blind)
#5776B7
Tritanopia (blue-blind)
#677D8B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #786fb9; /* rgb */ color: rgb(120, 111, 185); /* oklch */ color: oklch(58.2% 0.112 288.0);
Tailwind
colors: {
custom: {
50: '#a198ce',
500: '#786fb9',
950: '#000000',
},
}SCSS
$custom: #786fb9; $custom-light: #a198ce; $custom-dark: #000000;
JSON
{
"hex": "#786fb9",
"rgb": {
"r": 120,
"g": 111,
"b": 185
},
"hsl": {
"h": 247.297,
"s": 34.579,
"l": 58.039
},
"oklch": {
"l": 0.58176,
"c": 0.11176,
"h": 288
},
"luminance": 0.18865
}Semantic roles & 50–950 ramp
primary
#786FB9
secondary
#CDD1B3
accent
#CB5DBD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82