#786DCE#786DCE
#786DCE is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.0% C 0.144 H 286.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #786DCE |
|---|---|
| RGB | rgb(120, 109, 206) |
| HSL | hsl(247, 50%, 62%) |
| HSV | hsv(247, 47%, 81%) |
| CMYK | cmyk(41.7%, 47.1%, 0%, 19.2%) |
| CIE-LAB | lab(51.14, 28.19, -48.98) |
| CIE-LCH | lch(51.14, 56.51, 299.92°) |
| OKLab | oklab(59% 0.0405 -0.1387) |
| OKLCH | oklch(59% 0.144 286.3) |
| XYZ | xyz(24.3518, 19.3857, 60.8393) |
| Luminance | 0.1939 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.95
Dark Periwinkle
#665FD1
ΔE00 5.45
Mediumpurple
#9370DB
ΔE00 5.73
Light Indigo
#6D5ACF
ΔE00 6.27
Slate Blue
#6A5ACD
ΔE00 6.43
Iris
#6258C4
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786DCE #C3CE6D
analogous
#6D93CE #786DCE #A96DCE
triadic
#786DCE #CE786D #6DCE78
tetradic
#786DCE #CE6D93 #C3CE6D #6DCEA9
square
#786DCE #CE6D93 #C3CE6D #6DCEA9
split-complementary
#786DCE #CEA96D #93CE6D
monochromatic
#3B3090 #4E40BE #786DCE #A29BDD #CDC9ED
Accessibility & contrast
On white
4.31
#786DCE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#786DCE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786DCE
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786DCE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786DCE | 1.00 | 4.31 | 4.88 | 4.88 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#477CD2
Deuteranopia (green-blind)
#4577CC
Tritanopia (blue-blind)
#5F8194
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786dce; /* rgb */ color: rgb(120, 109, 206); /* oklch */ color: oklch(59.0% 0.144 286.3);
Tailwind
colors: {
custom: {
50: '#a397dd',
500: '#786dce',
950: '#000000',
},
}SCSS
$custom: #786dce; $custom-light: #a397dd; $custom-dark: #000000;
JSON
{
"hex": "#786dce",
"rgb": {
"r": 120,
"g": 109,
"b": 206
},
"hsl": {
"h": 246.804,
"s": 49.744,
"l": 61.765
},
"oklch": {
"l": 0.58998,
"c": 0.14445,
"h": 286.3
},
"luminance": 0.19387
}Semantic roles & 50–950 ramp
primary
#786DCE
secondary
#D9DDB9
accent
#BD28AC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83