#787FA7#787FA7

#787FA7 is a mid, moderate blue. Relative luminance 0.220; OKLCH L 60.6% C 0.061 H 276.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#787FA7
RGBrgb(120, 127, 167)
HSLhsl(231, 21%, 56%)
HSVhsv(231, 28%, 65%)
CMYKcmyk(28.1%, 24%, 0%, 34.5%)
CIE-LABlab(53.99, 6.76, -22.11)
CIE-LCHlch(53.99, 23.12, 287.00°)
OKLaboklab(60.58% 0.0072 -0.061)
OKLCHoklch(60.58% 0.061 276.7)
XYZxyz(22.3083, 21.9612, 39.6153)
Luminance0.2196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FA7 #A7A078
analogous
#7897A7 #787FA7 #8978A7
triadic
#787FA7 #A7787F #7FA778
tetradic
#787FA7 #A77897 #A7A078 #78A789
square
#787FA7 #A77897 #A7A078 #78A789
split-complementary
#787FA7 #A78978 #97A778
monochromatic
#414664 #596089 #787FA7 #9DA2BF #C2C5D7

Accessibility & contrast

On white

3.89
#787FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#787FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FA7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FA7#FFFFFF#000000##000000
##787FA71.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383A9
Deuteranopia (green-blind)
#707FA6
Tritanopia (blue-blind)
#6C868D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787fa7;
/* rgb */ color: rgb(120, 127, 167);
/* oklch */ color: oklch(60.6% 0.061 276.7);
Tailwind
colors: {
  custom: {
    50: '#a0a4c1',
    500: '#787fa7',
    950: '#000000',
  },
}
SCSS
$custom: #787fa7;
$custom-light: #a0a4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#787fa7",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 167
  },
  "hsl": {
    "h": 231.064,
    "s": 21.076,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60577,
    "c": 0.06138,
    "h": 276.7
  },
  "luminance": 0.21962
}

Semantic roles & 50–950 ramp

primary
#787FA7
secondary
#C7C4B4
accent
#B16ABE
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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