#787EA9#787EA9

#787EA9 is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.5% C 0.066 H 278.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#787EA9
RGBrgb(120, 126, 169)
HSLhsl(233, 22%, 57%)
HSVhsv(233, 29%, 66%)
CMYKcmyk(29%, 25.4%, 0%, 33.7%)
CIE-LABlab(53.79, 7.86, -23.57)
CIE-LCHlch(53.79, 24.84, 288.45°)
OKLaboklab(60.45% 0.0092 -0.0651)
OKLCHoklch(60.45% 0.066 278.1)
XYZxyz(22.3661, 21.7787, 40.5537)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA9 #A9A378
analogous
#7897A9 #787EA9 #8B78A9
triadic
#787EA9 #A9787E #7EA978
tetradic
#787EA9 #A97897 #A9A378 #78A98B
square
#787EA9 #A97897 #A9A378 #78A98B
split-complementary
#787EA9 #A98B78 #97A978
monochromatic
#414566 #595F8B #787EA9 #9DA2C1 #C3C5D9

Accessibility & contrast

On white

3.92
#787EA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#787EA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EA9
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EA9#FFFFFF#000000##000000
##787EA91.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7282AB
Deuteranopia (green-blind)
#6F7FA8
Tritanopia (blue-blind)
#6C868D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787ea9;
/* rgb */ color: rgb(120, 126, 169);
/* oklch */ color: oklch(60.5% 0.066 278.1);
Tailwind
colors: {
  custom: {
    50: '#a0a3c2',
    500: '#787ea9',
    950: '#000000',
  },
}
SCSS
$custom: #787ea9;
$custom-light: #a0a3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea9",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 169
  },
  "hsl": {
    "h": 232.653,
    "s": 22.172,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60452,
    "c": 0.06573,
    "h": 278.1
  },
  "luminance": 0.21779
}

Semantic roles & 50–950 ramp

primary
#787EA9
secondary
#C8C6B4
accent
#B469BF
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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