#786CD3#786CD3
#786CD3 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.153 H 286.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #786CD3 |
|---|---|
| RGB | rgb(120, 108, 211) |
| HSL | hsl(247, 54%, 63%) |
| HSV | hsv(247, 49%, 83%) |
| CMYK | cmyk(43.1%, 48.8%, 0%, 17.3%) |
| CIE-LAB | lab(51.18, 30.22, -51.76) |
| CIE-LCH | lch(51.18, 59.94, 300.28°) |
| OKLab | oklab(59.12% 0.0423 -0.1468) |
| OKLCH | oklch(59.12% 0.153 286.1) |
| XYZ | xyz(24.8628, 19.4204, 64.0539) |
| Luminance | 0.1942 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.09
Dark Periwinkle
#665FD1
ΔE00 5.11
Mediumpurple
#9370DB
ΔE00 5.61
Light Indigo
#6D5ACF
ΔE00 5.93
Slate Blue
#6A5ACD
ΔE00 6.14
Purpley
#8756E4
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CD3 #C7D36C
analogous
#6C94D3 #786CD3 #AB6CD3
triadic
#786CD3 #D3786C #6CD378
tetradic
#786CD3 #D36C94 #C7D36C #6CD3AB
square
#786CD3 #D36C94 #C7D36C #6CD3AB
split-complementary
#786CD3 #D3AB6C #94D36C
monochromatic
#3A2D97 #4D3DC5 #786CD3 #A39BE1 #CFCAEF
Accessibility & contrast
On white
4.30
#786CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#786CD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CD3
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CD3 | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 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)
#417DD7
Deuteranopia (green-blind)
#3F77D1
Tritanopia (blue-blind)
#5C8195
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786cd3; /* rgb */ color: rgb(120, 108, 211); /* oklch */ color: oklch(59.1% 0.153 286.1);
Tailwind
colors: {
custom: {
50: '#a496e1',
500: '#786cd3',
950: '#000000',
},
}SCSS
$custom: #786cd3; $custom-light: #a496e1; $custom-dark: #000000;
JSON
{
"hex": "#786cd3",
"rgb": {
"r": 120,
"g": 108,
"b": 211
},
"hsl": {
"h": 246.99,
"s": 53.927,
"l": 62.549
},
"oklch": {
"l": 0.5912,
"c": 0.1528,
"h": 286.1
},
"luminance": 0.19421
}Semantic roles & 50–950 ramp
primary
#786CD3
secondary
#DCE0BB
accent
#C124AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83