#787CA5#787CA5

#787CA5 is a mid, moderate blue. Relative luminance 0.211; OKLCH L 59.9% C 0.063 H 280.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#787CA5
RGBrgb(120, 124, 165)
HSLhsl(235, 20%, 56%)
HSVhsv(235, 27%, 65%)
CMYKcmyk(27.3%, 24.8%, 0%, 35.3%)
CIE-LABlab(53.09, 8.01, -22.34)
CIE-LCHlch(53.09, 23.73, 289.73°)
OKLaboklab(59.85% 0.0109 -0.0616)
OKLCHoklch(59.85% 0.063 280)
XYZxyz(21.7431, 21.1245, 38.5219)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CA5 #A5A178
analogous
#7892A5 #787CA5 #8A78A5
triadic
#787CA5 #A5787C #7CA578
tetradic
#787CA5 #A57892 #A5A178 #78A58A
square
#787CA5 #A57892 #A5A178 #78A58A
split-complementary
#787CA5 #A58A78 #92A578
monochromatic
#414462 #5A5D86 #787CA5 #9DA0BD #C1C3D6

Accessibility & contrast

On white

4.02
#787CA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#787CA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CA5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CA5#FFFFFF#000000##000000
##787CA51.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7180A7
Deuteranopia (green-blind)
#6E7DA4
Tritanopia (blue-blind)
#6D838A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787ca5;
/* rgb */ color: rgb(120, 124, 165);
/* oklch */ color: oklch(59.9% 0.063 280.0);
Tailwind
colors: {
  custom: {
    50: '#a0a1bf',
    500: '#787ca5',
    950: '#000000',
  },
}
SCSS
$custom: #787ca5;
$custom-light: #a0a1bf;
$custom-dark: #000000;
JSON
{
  "hex": "#787ca5",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 165
  },
  "hsl": {
    "h": 234.667,
    "s": 20,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59851,
    "c": 0.06254,
    "h": 280
  },
  "luminance": 0.21125
}

Semantic roles & 50–950 ramp

primary
#787CA5
secondary
#C6C4B3
accent
#B56BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #787CA5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#787CA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva