#787CA7#787CA7

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

Color values

HEX#787CA7
RGBrgb(120, 124, 167)
HSLhsl(235, 21%, 56%)
HSVhsv(235, 28%, 65%)
CMYKcmyk(28.1%, 25.7%, 0%, 34.5%)
CIE-LABlab(53.17, 8.53, -23.38)
CIE-LCHlch(53.17, 24.88, 290.04°)
OKLaboklab(59.94% 0.0115 -0.0645)
OKLCHoklch(59.94% 0.066 280.1)
XYZxyz(21.9266, 21.1978, 39.4881)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CA7 #A7A378
analogous
#7894A7 #787CA7 #8C78A7
triadic
#787CA7 #A7787C #7CA778
tetradic
#787CA7 #A77894 #A7A378 #78A78C
square
#787CA7 #A77894 #A7A378 #78A78C
split-complementary
#787CA7 #A78C78 #94A778
monochromatic
#414464 #595D89 #787CA7 #9DA0BF #C2C4D7

Accessibility & contrast

On white

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

On black

5.24
#787CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CA7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CA7#FFFFFF#000000##000000
##787CA71.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081A9
Deuteranopia (green-blind)
#6D7DA6
Tritanopia (blue-blind)
#6C848B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787ca7;
/* rgb */ color: rgb(120, 124, 167);
/* oklch */ color: oklch(59.9% 0.066 280.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1c1',
    500: '#787ca7',
    950: '#000000',
  },
}
SCSS
$custom: #787ca7;
$custom-light: #a0a1c1;
$custom-dark: #000000;
JSON
{
  "hex": "#787ca7",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 167
  },
  "hsl": {
    "h": 234.894,
    "s": 21.076,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5994,
    "c": 0.06554,
    "h": 280.1
  },
  "luminance": 0.21198
}

Semantic roles & 50–950 ramp

primary
#787CA7
secondary
#C7C5B4
accent
#B76ABE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #787CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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