#787DCB#787DCB

#787DCB is a mid, moderate blue. Relative luminance 0.230; OKLCH L 61.9% C 0.117 H 279.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#787DCB
RGBrgb(120, 125, 203)
HSLhsl(236, 44%, 63%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(40.9%, 38.4%, 0%, 20.4%)
CIE-LABlab(55.04, 17.76, -41.08)
CIE-LCHlch(55.04, 44.75, 293.38°)
OKLaboklab(61.92% 0.0195 -0.1155)
OKLCHoklch(61.92% 0.117 279.6)
XYZxyz(25.8557, 22.9710, 59.5598)
Luminance0.2297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DCB #CBC678
analogous
#78A6CB #787DCB #9C78CB
triadic
#787DCB #CB787D #7DCB78
tetradic
#787DCB #CB78A6 #CBC678 #78CB9C
square
#787DCB #CB78A6 #CBC678 #78CB9C
split-complementary
#787DCB #CB9C78 #A6CB78
monochromatic
#383D91 #4C52BA #787DCB #A4A8DC #D0D2ED

Accessibility & contrast

On white

3.75
#787DCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#787DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DCB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DCB#FFFFFF#000000##000000
##787DCB1.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CE
Deuteranopia (green-blind)
#5D81C9
Tritanopia (blue-blind)
#5F8D9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787dcb;
/* rgb */ color: rgb(120, 125, 203);
/* oklch */ color: oklch(61.9% 0.117 279.6);
Tailwind
colors: {
  custom: {
    50: '#a2a2db',
    500: '#787dcb',
    950: '#000000',
  },
}
SCSS
$custom: #787dcb;
$custom-light: #a2a2db;
$custom-dark: #000000;
JSON
{
  "hex": "#787dcb",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 203
  },
  "hsl": {
    "h": 236.386,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61917,
    "c": 0.11718,
    "h": 279.6
  },
  "luminance": 0.22972
}

Semantic roles & 50–950 ramp

primary
#787DCB
secondary
#DEDCC1
accent
#AF2EB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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