#786CC5#786CC5
#786CC5 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.3% C 0.133 H 287.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #786CC5 |
|---|---|
| RGB | rgb(120, 108, 197) |
| HSL | hsl(248, 43%, 60%) |
| HSV | hsv(248, 45%, 77%) |
| CMYK | cmyk(39.1%, 45.2%, 0%, 22.7%) |
| CIE-LAB | lab(50.39, 26.23, -45.01) |
| CIE-LCH | lch(50.39, 52.10, 300.23°) |
| OKLab | oklab(58.28% 0.0406 -0.1271) |
| OKLCH | oklch(58.28% 0.133 287.7) |
| XYZ | xyz(23.1835, 18.7487, 55.2098) |
| Luminance | 0.1875 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.74
Mediumpurple
#9370DB
ΔE00 6.23
Light Indigo
#6D5ACF
ΔE00 6.32
Mediumslateblue
#7B68EE
ΔE00 6.33
Slate Blue
#6A5ACD
ΔE00 6.43
Iris
#6258C4
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#786CC5 #B9C56C
analogous
#6C8CC5 #786CC5 #A56CC5
triadic
#786CC5 #C5786C #6CC578
tetradic
#786CC5 #C56C8C #B9C56C #6CC5A5
square
#786CC5 #C56C8C #B9C56C #6CC5A5
split-complementary
#786CC5 #C5A56C #8CC56C
monochromatic
#3E3483 #5345AF #786CC5 #A098D6 #C9C4E8
Accessibility & contrast
On white
4.42
#786CC5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#786CC5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #786CC5
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##786CC5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##786CC5 | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C7AC8
Deuteranopia (green-blind)
#4B76C3
Tritanopia (blue-blind)
#637E8F
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #786cc5; /* rgb */ color: rgb(120, 108, 197); /* oklch */ color: oklch(58.3% 0.133 287.7);
Tailwind
colors: {
custom: {
50: '#a296d7',
500: '#786cc5',
950: '#000000',
},
}SCSS
$custom: #786cc5; $custom-light: #a296d7; $custom-dark: #000000;
JSON
{
"hex": "#786cc5",
"rgb": {
"r": 120,
"g": 108,
"b": 197
},
"hsl": {
"h": 248.09,
"s": 43.415,
"l": 59.804
},
"oklch": {
"l": 0.58276,
"c": 0.13339,
"h": 287.7
},
"luminance": 0.18749
}Semantic roles & 50–950 ramp
primary
#786CC5
secondary
#D3D8B5
accent
#D355C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83