#787EAB#787EAB

#787EAB is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.5% C 0.069 H 278.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#787EAB
RGBrgb(120, 126, 171)
HSLhsl(233, 23%, 57%)
HSVhsv(233, 30%, 67%)
CMYKcmyk(29.8%, 26.3%, 0%, 32.9%)
CIE-LABlab(53.87, 8.38, -24.60)
CIE-LCHlch(53.87, 25.99, 288.82°)
OKLaboklab(60.54% 0.0099 -0.068)
OKLCHoklch(60.54% 0.069 278.2)
XYZxyz(22.5553, 21.8544, 41.5501)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EAB #ABA578
analogous
#7898AB #787EAB #8C78AB
triadic
#787EAB #AB787E #7EAB78
tetradic
#787EAB #AB7898 #ABA578 #78AB8C
square
#787EAB #AB7898 #ABA578 #78AB8C
split-complementary
#787EAB #AB8C78 #98AB78
monochromatic
#414568 #585E8E #787EAB #9EA2C2 #C3C6DA

Accessibility & contrast

On white

3.91
#787EAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#787EAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EAB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EAB#FFFFFF#000000##000000
##787EAB1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7183AD
Deuteranopia (green-blind)
#6E7FAA
Tritanopia (blue-blind)
#6B868E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787eab;
/* rgb */ color: rgb(120, 126, 171);
/* oklch */ color: oklch(60.5% 0.069 278.2);
Tailwind
colors: {
  custom: {
    50: '#a0a3c4',
    500: '#787eab',
    950: '#000000',
  },
}
SCSS
$custom: #787eab;
$custom-light: #a0a3c4;
$custom-dark: #000000;
JSON
{
  "hex": "#787eab",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 171
  },
  "hsl": {
    "h": 232.941,
    "s": 23.288,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60542,
    "c": 0.06873,
    "h": 278.2
  },
  "luminance": 0.21855
}

Semantic roles & 50–950 ramp

primary
#787EAB
secondary
#CAC7B5
accent
#B568C0
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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