#787EA6#787EA6

#787EA6 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.3% C 0.061 H 277.8°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#787EA6
RGBrgb(120, 126, 166)
HSLhsl(232, 21%, 56%)
HSVhsv(232, 28%, 65%)
CMYKcmyk(27.7%, 24.1%, 0%, 34.9%)
CIE-LABlab(53.67, 7.09, -22.02)
CIE-LCHlch(53.67, 23.13, 287.85°)
OKLaboklab(60.32% 0.0083 -0.0607)
OKLCHoklch(60.32% 0.061 277.8)
XYZxyz(22.0877, 21.6674, 39.0875)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA6 #A6A078
analogous
#7895A6 #787EA6 #8978A6
triadic
#787EA6 #A6787E #7EA678
tetradic
#787EA6 #A67895 #A6A078 #78A689
square
#787EA6 #A67895 #A6A078 #78A689
split-complementary
#787EA6 #A68978 #95A678
monochromatic
#414563 #595F87 #787EA6 #9DA1BE #C2C4D7

Accessibility & contrast

On white

3.94
#787EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#787EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EA6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EA6#FFFFFF#000000##000000
##787EA61.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7382A8
Deuteranopia (green-blind)
#707FA5
Tritanopia (blue-blind)
#6D858C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787ea6;
/* rgb */ color: rgb(120, 126, 166);
/* oklch */ color: oklch(60.3% 0.061 277.8);
Tailwind
colors: {
  custom: {
    50: '#a0a3c0',
    500: '#787ea6',
    950: '#000000',
  },
}
SCSS
$custom: #787ea6;
$custom-light: #a0a3c0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea6",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 166
  },
  "hsl": {
    "h": 232.174,
    "s": 20.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60321,
    "c": 0.06124,
    "h": 277.8
  },
  "luminance": 0.21668
}

Semantic roles & 50–950 ramp

primary
#787EA6
secondary
#C6C4B3
accent
#B26BBD
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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