#786CD5#786CD5
#786CD5 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.2% C 0.156 H 285.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #786CD5 |
|---|---|
| RGB | rgb(120, 108, 213) |
| HSL | hsl(247, 56%, 63%) |
| HSV | hsv(247, 49%, 84%) |
| CMYK | cmyk(43.7%, 49.3%, 0%, 16.5%) |
| CIE-LAB | lab(51.29, 30.80, -52.71) |
| CIE-LCH | lch(51.29, 61.05, 300.30°) |
| OKLab | oklab(59.25% 0.0424 -0.1496) |
| OKLCH | oklch(59.25% 0.156 285.8) |
| XYZ | xyz(25.1151, 19.5213, 65.3826) |
| Luminance | 0.1952 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.80
Dark Periwinkle
#665FD1
ΔE00 5.12
Mediumpurple
#9370DB
ΔE00 5.59
Light Indigo
#6D5ACF
ΔE00 5.96
Slate Blue
#6A5ACD
ΔE00 6.18
Purpley
#8756E4
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CD5 #C9D56C
analogous
#6C94D5 #786CD5 #AC6CD5
triadic
#786CD5 #D5786C #6CD578
tetradic
#786CD5 #D56C94 #C9D56C #6CD5AC
square
#786CD5 #D56C94 #C9D56C #6CD5AC
split-complementary
#786CD5 #D5AC6C #94D56C
monochromatic
#392C9A #4C3CC7 #786CD5 #A49CE3 #CFCBF0
Accessibility & contrast
On white
4.28
#786CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#786CD5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CD5
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CD5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CD5 | 1.00 | 4.28 | 4.90 | 4.90 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F7DD9
Deuteranopia (green-blind)
#3D77D3
Tritanopia (blue-blind)
#5B8296
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #786cd5; /* rgb */ color: rgb(120, 108, 213); /* oklch */ color: oklch(59.2% 0.156 285.8);
Tailwind
colors: {
custom: {
50: '#a496e2',
500: '#786cd5',
950: '#000000',
},
}SCSS
$custom: #786cd5; $custom-light: #a496e2; $custom-dark: #000000;
JSON
{
"hex": "#786cd5",
"rgb": {
"r": 120,
"g": 108,
"b": 213
},
"hsl": {
"h": 246.857,
"s": 55.556,
"l": 62.941
},
"oklch": {
"l": 0.59245,
"c": 0.15552,
"h": 285.8
},
"luminance": 0.19522
}Semantic roles & 50–950 ramp
primary
#786CD5
secondary
#DDE1BB
accent
#C322B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83