#786BCF#786BCF
#786BCF is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.7% C 0.149 H 286.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #786BCF |
|---|---|
| RGB | rgb(120, 107, 207) |
| HSL | hsl(248, 51%, 62%) |
| HSV | hsv(248, 48%, 81%) |
| CMYK | cmyk(42%, 48.3%, 0%, 18.8%) |
| CIE-LAB | lab(50.70, 29.67, -50.24) |
| CIE-LCH | lch(50.70, 58.35, 300.56°) |
| OKLab | oklab(58.69% 0.0431 -0.1424) |
| OKLCH | oklch(58.69% 0.149 286.8) |
| XYZ | xyz(24.2627, 19.0126, 61.4108) |
| Luminance | 0.1901 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.63
Dark Periwinkle
#665FD1
ΔE00 4.93
Light Indigo
#6D5ACF
ΔE00 5.62
Mediumpurple
#9370DB
ΔE00 5.74
Slate Blue
#6A5ACD
ΔE00 5.82
Iris
#6258C4
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786BCF #C2CF6B
analogous
#6B90CF #786BCF #AA6BCF
triadic
#786BCF #CF786B #6BCF78
tetradic
#786BCF #CF6B90 #C2CF6B #6BCFAA
square
#786BCF #CF6B90 #C2CF6B #6BCFAA
split-complementary
#786BCF #CFAA6B #90CF6B
monochromatic
#3C2F91 #4F3EBF #786BCF #A299DE #CCC7ED
Accessibility & contrast
On white
4.37
#786BCF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.80
#786BCF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786BCF
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786BCF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786BCF | 1.00 | 4.37 | 4.80 | 4.80 |
| #FFFFFF | 4.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#437BD3
Deuteranopia (green-blind)
#4176CD
Tritanopia (blue-blind)
#5E8093
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #786bcf; /* rgb */ color: rgb(120, 107, 207); /* oklch */ color: oklch(58.7% 0.149 286.8);
Tailwind
colors: {
custom: {
50: '#a395de',
500: '#786bcf',
950: '#000000',
},
}SCSS
$custom: #786bcf; $custom-light: #a395de; $custom-dark: #000000;
JSON
{
"hex": "#786bcf",
"rgb": {
"r": 120,
"g": 107,
"b": 207
},
"hsl": {
"h": 247.8,
"s": 51.02,
"l": 61.569
},
"oklch": {
"l": 0.5869,
"c": 0.14875,
"h": 286.8
},
"luminance": 0.19013
}Semantic roles & 50–950 ramp
primary
#786BCF
secondary
#D9DEB8
accent
#BE27AB
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83