#787CBD#787CBD

#787CBD is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.0% C 0.098 H 280.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#787CBD
RGBrgb(120, 124, 189)
HSLhsl(237, 34%, 61%)
HSVhsv(237, 37%, 74%)
CMYKcmyk(36.5%, 34.4%, 0%, 25.9%)
CIE-LABlab(54.11, 14.41, -34.56)
CIE-LCHlch(54.11, 37.45, 292.64°)
OKLaboklab(60.99% 0.0177 -0.0966)
OKLCHoklch(60.99% 0.098 280.4)
XYZxyz(24.1361, 22.0816, 51.1247)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CBD #BDB978
analogous
#789EBD #787CBD #9678BD
triadic
#787CBD #BD787C #7CBD78
tetradic
#787CBD #BD789E #BDB978 #78BD96
square
#787CBD #BD789E #BDB978 #78BD96
split-complementary
#787CBD #BD9678 #9EBD78
monochromatic
#3D417D #5156A6 #787CBD #A1A4D1 #CACCE5

Accessibility & contrast

On white

3.88
#787CBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#787CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CBD
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CBD#FFFFFF#000000##000000
##787CBD1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6784C0
Deuteranopia (green-blind)
#647FBB
Tritanopia (blue-blind)
#658894
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787cbd;
/* rgb */ color: rgb(120, 124, 189);
/* oklch */ color: oklch(61.0% 0.098 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1d1',
    500: '#787cbd',
    950: '#000000',
  },
}
SCSS
$custom: #787cbd;
$custom-light: #a1a1d1;
$custom-dark: #000000;
JSON
{
  "hex": "#787cbd",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 189
  },
  "hsl": {
    "h": 236.522,
    "s": 34.328,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60985,
    "c": 0.09824,
    "h": 280.4
  },
  "luminance": 0.22082
}

Semantic roles & 50–950 ramp

primary
#787CBD
secondary
#D6D4BB
accent
#A638AD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #787CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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