#786CD2#786CD2
#786CD2 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.151 H 286.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #786CD2 |
|---|---|
| RGB | rgb(120, 108, 210) |
| HSL | hsl(247, 53%, 62%) |
| HSV | hsv(247, 49%, 82%) |
| CMYK | cmyk(42.9%, 48.6%, 0%, 17.6%) |
| CIE-LAB | lab(51.12, 29.93, -51.28) |
| CIE-LCH | lch(51.12, 59.38, 300.27°) |
| OKLab | oklab(59.06% 0.0422 -0.1454) |
| OKLCH | oklch(59.06% 0.151 286.2) |
| XYZ | xyz(24.7378, 19.3704, 63.3957) |
| Luminance | 0.1937 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.24
Dark Periwinkle
#665FD1
ΔE00 5.12
Mediumpurple
#9370DB
ΔE00 5.63
Light Indigo
#6D5ACF
ΔE00 5.93
Slate Blue
#6A5ACD
ΔE00 6.13
Purpley
#8756E4
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CD2 #C6D26C
analogous
#6C93D2 #786CD2 #AB6CD2
triadic
#786CD2 #D2786C #6CD278
tetradic
#786CD2 #D26C93 #C6D26C #6CD2AB
square
#786CD2 #D26C93 #C6D26C #6CD2AB
split-complementary
#786CD2 #D2AB6C #93D26C
monochromatic
#3A2E96 #4D3DC4 #786CD2 #A39BE0 #CECAEF
Accessibility & contrast
On white
4.31
#786CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#786CD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CD2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CD2 | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#427DD6
Deuteranopia (green-blind)
#4077D0
Tritanopia (blue-blind)
#5D8195
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786cd2; /* rgb */ color: rgb(120, 108, 210); /* oklch */ color: oklch(59.1% 0.151 286.2);
Tailwind
colors: {
custom: {
50: '#a496e0',
500: '#786cd2',
950: '#000000',
},
}SCSS
$custom: #786cd2; $custom-light: #a496e0; $custom-dark: #000000;
JSON
{
"hex": "#786cd2",
"rgb": {
"r": 120,
"g": 108,
"b": 210
},
"hsl": {
"h": 247.059,
"s": 53.125,
"l": 62.353
},
"oklch": {
"l": 0.59058,
"c": 0.15142,
"h": 286.2
},
"luminance": 0.19371
}Semantic roles & 50–950 ramp
primary
#786CD2
secondary
#DBE0BA
accent
#C125AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83