#787CA6#787CA6

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

Color values

HEX#787CA6
RGBrgb(120, 124, 166)
HSLhsl(235, 21%, 56%)
HSVhsv(235, 28%, 65%)
CMYKcmyk(27.7%, 25.3%, 0%, 34.9%)
CIE-LABlab(53.13, 8.27, -22.86)
CIE-LCHlch(53.13, 24.31, 289.89°)
OKLaboklab(59.9% 0.0112 -0.0631)
OKLCHoklch(59.9% 0.064 280)
XYZxyz(21.8345, 21.1610, 39.0031)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CA6 #A6A278
analogous
#7893A6 #787CA6 #8B78A6
triadic
#787CA6 #A6787C #7CA678
tetradic
#787CA6 #A67893 #A6A278 #78A68B
square
#787CA6 #A67893 #A6A278 #78A68B
split-complementary
#787CA6 #A68B78 #93A678
monochromatic
#414463 #595D87 #787CA6 #9DA0BE #C2C4D7

Accessibility & contrast

On white

4.01
#787CA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787CA6#FFFFFF#000000##000000
##787CA61.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081A8
Deuteranopia (green-blind)
#6E7DA5
Tritanopia (blue-blind)
#6D848A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787ca6;
/* rgb */ color: rgb(120, 124, 166);
/* oklch */ color: oklch(59.9% 0.064 280.0);
Tailwind
colors: {
  custom: {
    50: '#a0a1c0',
    500: '#787ca6',
    950: '#000000',
  },
}
SCSS
$custom: #787ca6;
$custom-light: #a0a1c0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ca6",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 166
  },
  "hsl": {
    "h": 234.783,
    "s": 20.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59895,
    "c": 0.06404,
    "h": 280
  },
  "luminance": 0.21162
}

Semantic roles & 50–950 ramp

primary
#787CA6
secondary
#C6C5B3
accent
#B66BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #787CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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