#787FAE#787FAE

#787FAE is a mid, moderate blue. Relative luminance 0.222; OKLCH L 60.9% C 0.072 H 277.5°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#787FAE
RGBrgb(120, 127, 174)
HSLhsl(232, 25%, 58%)
HSVhsv(232, 31%, 68%)
CMYKcmyk(31%, 27%, 0%, 31.8%)
CIE-LABlab(54.27, 8.58, -25.72)
CIE-LCHlch(54.27, 27.11, 288.45°)
OKLaboklab(60.89% 0.0094 -0.0712)
OKLCHoklch(60.89% 0.072 277.5)
XYZxyz(22.9730, 22.2271, 43.1161)
Luminance0.2223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FAE #AEA778
analogous
#789AAE #787FAE #8C78AE
triadic
#787FAE #AE787F #7FAE78
tetradic
#787FAE #AE789A #AEA778 #78AE8C
square
#787FAE #AE789A #AEA778 #78AE8C
split-complementary
#787FAE #AE8C78 #9AAE78
monochromatic
#40466B #575F91 #787FAE #9EA3C5 #C4C8DC

Accessibility & contrast

On white

3.86
#787FAE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#787FAE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FAE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FAE#FFFFFF#000000##000000
##787FAE1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7184B0
Deuteranopia (green-blind)
#6E80AD
Tritanopia (blue-blind)
#6A888F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787fae;
/* rgb */ color: rgb(120, 127, 174);
/* oklch */ color: oklch(60.9% 0.072 277.5);
Tailwind
colors: {
  custom: {
    50: '#a0a4c6',
    500: '#787fae',
    950: '#000000',
  },
}
SCSS
$custom: #787fae;
$custom-light: #a0a4c6;
$custom-dark: #000000;
JSON
{
  "hex": "#787fae",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 174
  },
  "hsl": {
    "h": 232.222,
    "s": 25,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60889,
    "c": 0.07182,
    "h": 277.5
  },
  "luminance": 0.22228
}

Semantic roles & 50–950 ramp

primary
#787FAE
secondary
#CCC9B6
accent
#B666C1
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F13
muted
#7E7F82

Preview Lab

Preview with #787FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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