#786CBD#786CBD
#786CBD is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.8% C 0.122 H 288.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #786CBD |
|---|---|
| RGB | rgb(120, 108, 189) |
| HSL | hsl(249, 38%, 58%) |
| HSV | hsv(249, 43%, 74%) |
| CMYK | cmyk(36.5%, 42.9%, 0%, 25.9%) |
| CIE-LAB | lab(49.97, 24.00, -41.09) |
| CIE-LCH | lch(49.97, 47.58, 300.29°) |
| OKLab | oklab(57.82% 0.0393 -0.1156) |
| OKLCH | oklch(57.82% 0.122 288.8) |
| XYZ | xyz(22.2911, 18.3917, 50.5097) |
| Luminance | 0.1839 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 6.59
Mediumpurple
#9370DB
ΔE00 6.95
Light Indigo
#6D5ACF
ΔE00 7.01
Slate Blue
#6A5ACD
ΔE00 7.07
Deep Lilac
#966EBD
ΔE00 7.28
Deep Lavender
#8D5EB7
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CBD #B1BD6C
analogous
#6C88BD #786CBD #A06CBD
triadic
#786CBD #BD786C #6CBD78
tetradic
#786CBD #BD6C88 #B1BD6C #6CBDA0
square
#786CBD #BD6C88 #B1BD6C #6CBDA0
split-complementary
#786CBD #BDA06C #88BD6C
monochromatic
#403678 #5649A3 #786CBD #9F96D0 #C6C0E3
Accessibility & contrast
On white
4.49
#786CBD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#786CBD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CBD
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CBD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CBD | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5179C0
Deuteranopia (green-blind)
#5175BB
Tritanopia (blue-blind)
#667C8B
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #786cbd; /* rgb */ color: rgb(120, 108, 189); /* oklch */ color: oklch(57.8% 0.122 288.8);
Tailwind
colors: {
custom: {
50: '#a296d1',
500: '#786cbd',
950: '#000000',
},
}SCSS
$custom: #786cbd; $custom-light: #a296d1; $custom-dark: #000000;
JSON
{
"hex": "#786cbd",
"rgb": {
"r": 120,
"g": 108,
"b": 189
},
"hsl": {
"h": 248.889,
"s": 38.028,
"l": 58.235
},
"oklch": {
"l": 0.57817,
"c": 0.1221,
"h": 288.8
},
"luminance": 0.18392
}Semantic roles & 50–950 ramp
primary
#786CBD
secondary
#CED3B2
accent
#CE5ABD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82