#787EA8#787EA8

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

Color values

HEX#787EA8
RGBrgb(120, 126, 168)
HSLhsl(233, 22%, 56%)
HSVhsv(233, 29%, 66%)
CMYKcmyk(28.6%, 25%, 0%, 34.1%)
CIE-LABlab(53.75, 7.61, -23.05)
CIE-LCHlch(53.75, 24.27, 288.26°)
OKLaboklab(60.41% 0.0089 -0.0636)
OKLCHoklch(60.41% 0.064 278)
XYZxyz(22.2726, 21.7413, 40.0612)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA8 #A8A278
analogous
#7896A8 #787EA8 #8A78A8
triadic
#787EA8 #A8787E #7EA878
tetradic
#787EA8 #A87896 #A8A278 #78A88A
square
#787EA8 #A87896 #A8A278 #78A88A
split-complementary
#787EA8 #A88A78 #96A878
monochromatic
#414565 #595F8A #787EA8 #9DA2C0 #C2C5D8

Accessibility & contrast

On white

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

On black

5.35
#787EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EA8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EA8#FFFFFF#000000##000000
##787EA81.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787ea8;
/* rgb */ color: rgb(120, 126, 168);
/* oklch */ color: oklch(60.4% 0.064 278.0);
Tailwind
colors: {
  custom: {
    50: '#a0a3c2',
    500: '#787ea8',
    950: '#000000',
  },
}
SCSS
$custom: #787ea8;
$custom-light: #a0a3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea8",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 168
  },
  "hsl": {
    "h": 232.5,
    "s": 21.622,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60408,
    "c": 0.06424,
    "h": 278
  },
  "luminance": 0.21742
}

Semantic roles & 50–950 ramp

primary
#787EA8
secondary
#C8C5B4
accent
#B46ABE
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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