#787FA5#787FA5

#787FA5 is a mid, muted blue. Relative luminance 0.219; OKLCH L 60.5% C 0.058 H 276.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#787FA5
RGBrgb(120, 127, 165)
HSLhsl(231, 20%, 56%)
HSVhsv(231, 27%, 65%)
CMYKcmyk(27.3%, 23%, 0%, 35.3%)
CIE-LABlab(53.91, 6.25, -21.08)
CIE-LCHlch(53.91, 21.98, 286.51°)
OKLaboklab(60.49% 0.0065 -0.058)
OKLCHoklch(60.49% 0.058 276.4)
XYZxyz(22.1248, 21.8878, 38.6491)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FA5 #A59E78
analogous
#7895A5 #787FA5 #8778A5
triadic
#787FA5 #A5787F #7FA578
tetradic
#787FA5 #A57895 #A59E78 #78A587
square
#787FA5 #A57895 #A59E78 #78A587
split-complementary
#787FA5 #A58778 #95A578
monochromatic
#414662 #5A6086 #787FA5 #9DA2BD #C1C5D6

Accessibility & contrast

On white

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

On black

5.38
#787FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FA5
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FA5#FFFFFF#000000##000000
##787FA51.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7483A7
Deuteranopia (green-blind)
#717FA4
Tritanopia (blue-blind)
#6D868C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787fa5;
/* rgb */ color: rgb(120, 127, 165);
/* oklch */ color: oklch(60.5% 0.058 276.4);
Tailwind
colors: {
  custom: {
    50: '#a0a4bf',
    500: '#787fa5',
    950: '#000000',
  },
}
SCSS
$custom: #787fa5;
$custom-light: #a0a4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#787fa5",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 165
  },
  "hsl": {
    "h": 230.667,
    "s": 20,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.05838,
    "h": 276.4
  },
  "luminance": 0.21888
}

Semantic roles & 50–950 ramp

primary
#787FA5
secondary
#C6C3B3
accent
#B06BBD
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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