#787CB9#787CB9

#787CB9 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.8% C 0.092 H 280.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#787CB9
RGBrgb(120, 124, 185)
HSLhsl(236, 32%, 60%)
HSVhsv(236, 35%, 73%)
CMYKcmyk(35.1%, 33%, 0%, 27.5%)
CIE-LABlab(53.93, 13.31, -32.56)
CIE-LCHlch(53.93, 35.17, 292.24°)
OKLaboklab(60.79% 0.0167 -0.0908)
OKLCHoklch(60.79% 0.092 280.4)
XYZxyz(23.7079, 21.9103, 48.8695)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB9 #B9B578
analogous
#789CB9 #787CB9 #9578B9
triadic
#787CB9 #B9787C #7CB978
tetradic
#787CB9 #B9789C #B9B578 #78B995
square
#787CB9 #B9789C #B9B578 #78B995
split-complementary
#787CB9 #B99578 #9CB978
monochromatic
#3E4278 #5358A1 #787CB9 #A0A3CE #C9CAE3

Accessibility & contrast

On white

3.90
#787CB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#787CB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB9
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB9#FFFFFF#000000##000000
##787CB91.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6983BC
Deuteranopia (green-blind)
#667FB8
Tritanopia (blue-blind)
#668892
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787cb9;
/* rgb */ color: rgb(120, 124, 185);
/* oklch */ color: oklch(60.8% 0.092 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1ce',
    500: '#787cb9',
    950: '#000000',
  },
}
SCSS
$custom: #787cb9;
$custom-light: #a1a1ce;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb9",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 185
  },
  "hsl": {
    "h": 236.308,
    "s": 31.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60785,
    "c": 0.09235,
    "h": 280.4
  },
  "luminance": 0.21911
}

Semantic roles & 50–950 ramp

primary
#787CB9
secondary
#D3D1BA
accent
#C160C8
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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