#786CD4#786CD4
#786CD4 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.2% C 0.154 H 285.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #786CD4 |
|---|---|
| RGB | rgb(120, 108, 212) |
| HSL | hsl(247, 55%, 63%) |
| HSV | hsv(247, 49%, 83%) |
| CMYK | cmyk(43.4%, 49.1%, 0%, 16.9%) |
| CIE-LAB | lab(51.23, 30.51, -52.24) |
| CIE-LCH | lch(51.23, 60.49, 300.29°) |
| OKLab | oklab(59.18% 0.0424 -0.1482) |
| OKLCH | oklch(59.18% 0.154 285.9) |
| XYZ | xyz(24.9885, 19.4707, 64.7162) |
| Luminance | 0.1947 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.94
Dark Periwinkle
#665FD1
ΔE00 5.11
Mediumpurple
#9370DB
ΔE00 5.60
Light Indigo
#6D5ACF
ΔE00 5.94
Slate Blue
#6A5ACD
ΔE00 6.15
Purpley
#8756E4
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CD4 #C8D46C
analogous
#6C94D4 #786CD4 #AC6CD4
triadic
#786CD4 #D4786C #6CD478
tetradic
#786CD4 #D46C94 #C8D46C #6CD4AC
square
#786CD4 #D46C94 #C8D46C #6CD4AC
split-complementary
#786CD4 #D4AC6C #94D46C
monochromatic
#392D99 #4D3DC6 #786CD4 #A39BE2 #CFCBF0
Accessibility & contrast
On white
4.29
#786CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#786CD4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CD4
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CD4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CD4 | 1.00 | 4.29 | 4.89 | 4.89 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#407DD8
Deuteranopia (green-blind)
#3E77D2
Tritanopia (blue-blind)
#5C8296
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786cd4; /* rgb */ color: rgb(120, 108, 212); /* oklch */ color: oklch(59.2% 0.154 285.9);
Tailwind
colors: {
custom: {
50: '#a496e2',
500: '#786cd4',
950: '#000000',
},
}SCSS
$custom: #786cd4; $custom-light: #a496e2; $custom-dark: #000000;
JSON
{
"hex": "#786cd4",
"rgb": {
"r": 120,
"g": 108,
"b": 212
},
"hsl": {
"h": 246.923,
"s": 54.737,
"l": 62.745
},
"oklch": {
"l": 0.59183,
"c": 0.15416,
"h": 285.9
},
"luminance": 0.19472
}Semantic roles & 50–950 ramp
primary
#786CD4
secondary
#DCE1BB
accent
#C223B0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83