#787FB4#787FB4

#787FB4 is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.2% C 0.081 H 277.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#787FB4
RGBrgb(120, 127, 180)
HSLhsl(233, 29%, 59%)
HSVhsv(233, 33%, 71%)
CMYKcmyk(33.3%, 29.4%, 0%, 29.4%)
CIE-LABlab(54.52, 10.18, -28.78)
CIE-LCHlch(54.52, 30.52, 289.48°)
OKLaboklab(61.17% 0.0111 -0.08)
OKLCHoklch(61.17% 0.081 277.9)
XYZxyz(23.5710, 22.4663, 46.2657)
Luminance0.2247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FB4 #B4AD78
analogous
#789DB4 #787FB4 #8F78B4
triadic
#787FB4 #B4787F #7FB478
tetradic
#787FB4 #B4789D #B4AD78 #78B48F
square
#787FB4 #B4789D #B4AD78 #78B48F
split-complementary
#787FB4 #B48F78 #9DB478
monochromatic
#3F4572 #555D9A #787FB4 #9FA4CA #C7CAE0

Accessibility & contrast

On white

3.82
#787FB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#787FB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FB4
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FB4#FFFFFF#000000##000000
##787FB41.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F85B6
Deuteranopia (green-blind)
#6B80B3
Tritanopia (blue-blind)
#688992
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787fb4;
/* rgb */ color: rgb(120, 127, 180);
/* oklch */ color: oklch(61.2% 0.081 277.9);
Tailwind
colors: {
  custom: {
    50: '#a0a4ca',
    500: '#787fb4',
    950: '#000000',
  },
}
SCSS
$custom: #787fb4;
$custom-light: #a0a4ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787fb4",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 180
  },
  "hsl": {
    "h": 233,
    "s": 28.571,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61166,
    "c": 0.08074,
    "h": 277.9
  },
  "luminance": 0.22467
}

Semantic roles & 50–950 ramp

primary
#787FB4
secondary
#D0CDB8
accent
#B963C5
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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