#787EA7#787EA7

#787EA7 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.4% C 0.063 H 277.9°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#787EA7
RGBrgb(120, 126, 167)
HSLhsl(232, 21%, 56%)
HSVhsv(232, 28%, 65%)
CMYKcmyk(28.1%, 24.6%, 0%, 34.5%)
CIE-LABlab(53.71, 7.35, -22.53)
CIE-LCHlch(53.71, 23.70, 288.06°)
OKLaboklab(60.36% 0.0086 -0.0621)
OKLCHoklch(60.36% 0.063 277.9)
XYZxyz(22.1798, 21.7042, 39.5725)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA7 #A7A178
analogous
#7896A7 #787EA7 #8A78A7
triadic
#787EA7 #A7787E #7EA778
tetradic
#787EA7 #A77896 #A7A178 #78A78A
square
#787EA7 #A77896 #A7A178 #78A78A
split-complementary
#787EA7 #A78A78 #96A778
monochromatic
#414564 #595F89 #787EA7 #9DA1BF #C2C5D7

Accessibility & contrast

On white

3.93
#787EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#787EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EA7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EA7#FFFFFF#000000##000000
##787EA71.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7282A9
Deuteranopia (green-blind)
#6F7FA6
Tritanopia (blue-blind)
#6C868C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787ea7;
/* rgb */ color: rgb(120, 126, 167);
/* oklch */ color: oklch(60.4% 0.063 277.9);
Tailwind
colors: {
  custom: {
    50: '#a0a3c1',
    500: '#787ea7',
    950: '#000000',
  },
}
SCSS
$custom: #787ea7;
$custom-light: #a0a3c1;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea7",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 167
  },
  "hsl": {
    "h": 232.34,
    "s": 21.076,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60364,
    "c": 0.06274,
    "h": 277.9
  },
  "luminance": 0.21705
}

Semantic roles & 50–950 ramp

primary
#787EA7
secondary
#C7C5B4
accent
#B36ABE
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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