#787BC9#787BC9

#787BC9 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.4% C 0.117 H 280.7°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#787BC9
RGBrgb(120, 123, 201)
HSLhsl(238, 43%, 63%)
HSVhsv(238, 40%, 79%)
CMYKcmyk(40.3%, 38.8%, 0%, 21.2%)
CIE-LABlab(54.42, 18.38, -40.92)
CIE-LCHlch(54.42, 44.86, 294.19°)
OKLaboklab(61.41% 0.0217 -0.1151)
OKLCHoklch(61.41% 0.117 280.7)
XYZxyz(25.3682, 22.3750, 58.2292)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC9 #C9C678
analogous
#78A3C9 #787BC9 #9D78C9
triadic
#787BC9 #C9787B #7BC978
tetradic
#787BC9 #C978A3 #C9C678 #78C99D
square
#787BC9 #C978A3 #C9C678 #78C99D
split-complementary
#787BC9 #C99D78 #A3C978
monochromatic
#393C8E #4C50B8 #787BC9 #A4A6DA #CFD0EC

Accessibility & contrast

On white

3.84
#787BC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#787BC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC9
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC9#FFFFFF#000000##000000
##787BC91.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6085CC
Deuteranopia (green-blind)
#5C7FC7
Tritanopia (blue-blind)
#608A98
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bc9;
/* rgb */ color: rgb(120, 123, 201);
/* oklch */ color: oklch(61.4% 0.117 280.7);
Tailwind
colors: {
  custom: {
    50: '#a2a1da',
    500: '#787bc9',
    950: '#000000',
  },
}
SCSS
$custom: #787bc9;
$custom-light: #a2a1da;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc9",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 201
  },
  "hsl": {
    "h": 237.778,
    "s": 42.857,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6141,
    "c": 0.11712,
    "h": 280.7
  },
  "luminance": 0.22376
}

Semantic roles & 50–950 ramp

primary
#787BC9
secondary
#DDDCC0
accent
#B130B6
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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