#786BCD#786BCD
#786BCD is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.6% C 0.146 H 287.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #786BCD |
|---|---|
| RGB | rgb(120, 107, 205) |
| HSL | hsl(248, 49%, 61%) |
| HSV | hsv(248, 48%, 80%) |
| CMYK | cmyk(41.5%, 47.8%, 0%, 19.6%) |
| CIE-LAB | lab(50.59, 29.10, -49.28) |
| CIE-LCH | lch(50.59, 57.23, 300.56°) |
| OKLab | oklab(58.57% 0.0429 -0.1396) |
| OKLCH | oklch(58.57% 0.146 287.1) |
| XYZ | xyz(24.0198, 18.9154, 60.1312) |
| Luminance | 0.1892 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.95
Dark Periwinkle
#665FD1
ΔE00 5.00
Light Indigo
#6D5ACF
ΔE00 5.66
Mediumpurple
#9370DB
ΔE00 5.81
Slate Blue
#6A5ACD
ΔE00 5.84
Iris
#6258C4
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BCD #C0CD6B
analogous
#6B8FCD #786BCD #A96BCD
triadic
#786BCD #CD786B #6BCD78
tetradic
#786BCD #CD6B8F #C0CD6B #6BCDA9
square
#786BCD #CD6B8F #C0CD6B #6BCDA9
split-complementary
#786BCD #CDA96B #8FCD6B
monochromatic
#3C308E #503FBB #786BCD #A299DC #CBC6EC
Accessibility & contrast
On white
4.39
#786BCD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.78
#786BCD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BCD
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BCD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BCD | 1.00 | 4.39 | 4.78 | 4.78 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#447BD1
Deuteranopia (green-blind)
#4376CB
Tritanopia (blue-blind)
#5F7F92
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #786bcd; /* rgb */ color: rgb(120, 107, 205); /* oklch */ color: oklch(58.6% 0.146 287.1);
Tailwind
colors: {
custom: {
50: '#a395dd',
500: '#786bcd',
950: '#000000',
},
}SCSS
$custom: #786bcd; $custom-light: #a395dd; $custom-dark: #000000;
JSON
{
"hex": "#786bcd",
"rgb": {
"r": 120,
"g": 107,
"b": 205
},
"hsl": {
"h": 247.959,
"s": 49.495,
"l": 61.176
},
"oklch": {
"l": 0.58568,
"c": 0.146,
"h": 287.1
},
"luminance": 0.18916
}Semantic roles & 50–950 ramp
primary
#786BCD
secondary
#D7DCB8
accent
#BD29A9
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83