#786CD1#786CD1
#786CD1 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 59.0% C 0.150 H 286.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #786CD1 |
|---|---|
| RGB | rgb(120, 108, 209) |
| HSL | hsl(247, 52%, 62%) |
| HSV | hsv(247, 48%, 82%) |
| CMYK | cmyk(42.6%, 48.3%, 0%, 18%) |
| CIE-LAB | lab(51.06, 29.65, -50.81) |
| CIE-LCH | lch(51.06, 58.82, 300.26°) |
| OKLab | oklab(59% 0.042 -0.144) |
| OKLCH | oklch(59% 0.15 286.3) |
| XYZ | xyz(24.6136, 19.3207, 62.7416) |
| Luminance | 0.1932 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.39
Dark Periwinkle
#665FD1
ΔE00 5.13
Mediumpurple
#9370DB
ΔE00 5.65
Light Indigo
#6D5ACF
ΔE00 5.92
Slate Blue
#6A5ACD
ΔE00 6.12
Purpley
#8756E4
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CD1 #C5D16C
analogous
#6C92D1 #786CD1 #AB6CD1
triadic
#786CD1 #D1786C #6CD178
tetradic
#786CD1 #D16C92 #C5D16C #6CD1AB
square
#786CD1 #D16C92 #C5D16C #6CD1AB
split-complementary
#786CD1 #D1AB6C #92D16C
monochromatic
#3A2E94 #4D3DC2 #786CD1 #A39BE0 #CEC9EE
Accessibility & contrast
On white
4.32
#786CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#786CD1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CD1
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CD1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CD1 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#437CD5
Deuteranopia (green-blind)
#4177CF
Tritanopia (blue-blind)
#5D8194
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786cd1; /* rgb */ color: rgb(120, 108, 209); /* oklch */ color: oklch(59.0% 0.150 286.3);
Tailwind
colors: {
custom: {
50: '#a396e0',
500: '#786cd1',
950: '#000000',
},
}SCSS
$custom: #786cd1; $custom-light: #a396e0; $custom-dark: #000000;
JSON
{
"hex": "#786cd1",
"rgb": {
"r": 120,
"g": 108,
"b": 209
},
"hsl": {
"h": 247.129,
"s": 52.332,
"l": 62.157
},
"oklch": {
"l": 0.58997,
"c": 0.15005,
"h": 286.3
},
"luminance": 0.19322
}Semantic roles & 50–950 ramp
primary
#786CD1
secondary
#DBDFBA
accent
#C026AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83