#787CB1#787CB1
#787CB1 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.4% C 0.081 H 280.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #787CB1 |
|---|---|
| RGB | rgb(120, 124, 177) |
| HSL | hsl(236, 27%, 58%) |
| HSV | hsv(236, 32%, 69%) |
| CMYK | cmyk(32.2%, 29.9%, 0%, 30.6%) |
| CIE-LAB | lab(53.58, 11.15, -28.51) |
| CIE-LCH | lch(53.58, 30.61, 291.36°) |
| OKLab | oklab(60.4% 0.0145 -0.0792) |
| OKLCH | oklch(60.4% 0.081 280.4) |
| XYZ | xyz(22.8870, 21.5820, 44.5463) |
| Luminance | 0.2158 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 9.79
Deep Lilac
#966EBD
ΔE00 10.23
Faded Blue
#658CBB
ΔE00 10.24
Mediumpurple
#9370DB
ΔE00 10.50
Cornflower Blue
#5170D7
ΔE00 10.81
Slate Blue (survey)
#5B7C99
ΔE00 10.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787CB1 #B1AD78
analogous
#7898B1 #787CB1 #9078B1
triadic
#787CB1 #B1787C #7CB178
tetradic
#787CB1 #B17898 #B1AD78 #78B190
square
#787CB1 #B17898 #B1AD78 #78B190
split-complementary
#787CB1 #B19078 #98B178
monochromatic
#40436F #565B95 #787CB1 #9FA2C7 #C6C7DE
Accessibility & contrast
On white
3.95
#787CB1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.32
#787CB1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787CB1
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787CB1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787CB1 | 1.00 | 3.95 | 5.32 | 5.32 |
| #FFFFFF | 3.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6C82B3
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#69868F
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #787cb1; /* rgb */ color: rgb(120, 124, 177); /* oklch */ color: oklch(60.4% 0.081 280.4);
Tailwind
colors: {
custom: {
50: '#a0a1c8',
500: '#787cb1',
950: '#000000',
},
}SCSS
$custom: #787cb1; $custom-light: #a0a1c8; $custom-dark: #000000;
JSON
{
"hex": "#787cb1",
"rgb": {
"r": 120,
"g": 124,
"b": 177
},
"hsl": {
"h": 235.789,
"s": 26.761,
"l": 58.235
},
"oklch": {
"l": 0.60399,
"c": 0.0805,
"h": 280.4
},
"luminance": 0.21583
}Semantic roles & 50–950 ramp
primary
#787CB1
secondary
#CECCB7
accent
#BC65C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82