#787FA8#787FA8

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

Color values

HEX#787FA8
RGBrgb(120, 127, 168)
HSLhsl(231, 22%, 56%)
HSVhsv(231, 29%, 66%)
CMYKcmyk(28.6%, 24.4%, 0%, 34.1%)
CIE-LABlab(54.03, 7.02, -22.63)
CIE-LCHlch(54.03, 23.69, 287.23°)
OKLaboklab(60.62% 0.0075 -0.0624)
OKLCHoklch(60.62% 0.063 276.8)
XYZxyz(22.4011, 21.9983, 40.1040)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FA8 #A8A178
analogous
#7897A8 #787FA8 #8978A8
triadic
#787FA8 #A8787F #7FA878
tetradic
#787FA8 #A87897 #A8A178 #78A889
square
#787FA8 #A87897 #A8A178 #78A889
split-complementary
#787FA8 #A88978 #97A878
monochromatic
#414665 #59608A #787FA8 #9DA2C0 #C2C6D8

Accessibility & contrast

On white

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

On black

5.40
#787FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FA8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FA8#FFFFFF#000000##000000
##787FA81.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383AA
Deuteranopia (green-blind)
#707FA7
Tritanopia (blue-blind)
#6C878D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787fa8;
/* rgb */ color: rgb(120, 127, 168);
/* oklch */ color: oklch(60.6% 0.063 276.8);
Tailwind
colors: {
  custom: {
    50: '#a0a4c2',
    500: '#787fa8',
    950: '#000000',
  },
}
SCSS
$custom: #787fa8;
$custom-light: #a0a4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#787fa8",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 168
  },
  "hsl": {
    "h": 231.25,
    "s": 21.622,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60621,
    "c": 0.06287,
    "h": 276.8
  },
  "luminance": 0.21999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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