#787EA1#787EA1

#787EA1 is a mid, muted blue. Relative luminance 0.215; OKLCH L 60.1% C 0.054 H 277.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#787EA1
RGBrgb(120, 126, 161)
HSLhsl(231, 18%, 55%)
HSVhsv(231, 25%, 63%)
CMYKcmyk(25.5%, 21.7%, 0%, 36.9%)
CIE-LABlab(53.48, 5.82, -19.42)
CIE-LCHlch(53.48, 20.27, 286.69°)
OKLaboklab(60.11% 0.0066 -0.0533)
OKLCHoklch(60.11% 0.054 277.1)
XYZxyz(21.6379, 21.4875, 36.7188)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA1 #A19B78
analogous
#7892A1 #787EA1 #8778A1
triadic
#787EA1 #A1787E #7EA178
tetradic
#787EA1 #A17892 #A19B78 #78A187
square
#787EA1 #A17892 #A19B78 #78A187
split-complementary
#787EA1 #A18778 #92A178
monochromatic
#41455D #5A6082 #787EA1 #9CA0BA #C0C3D3

Accessibility & contrast

On white

3.96
#787EA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#787EA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EA1
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EA1#FFFFFF#000000##000000
##787EA11.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7481A3
Deuteranopia (green-blind)
#727EA0
Tritanopia (blue-blind)
#6E848A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787ea1;
/* rgb */ color: rgb(120, 126, 161);
/* oklch */ color: oklch(60.1% 0.054 277.1);
Tailwind
colors: {
  custom: {
    50: '#9fa3bd',
    500: '#787ea1',
    950: '#000000',
  },
}
SCSS
$custom: #787ea1;
$custom-light: #9fa3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea1",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 161
  },
  "hsl": {
    "h": 231.22,
    "s": 17.904,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60106,
    "c": 0.05374,
    "h": 277.1
  },
  "luminance": 0.21488
}

Semantic roles & 50–950 ramp

primary
#787EA1
secondary
#C3C0B2
accent
#AF6DBB
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0E0F12
muted
#7E7F81

Preview Lab

Preview with #787EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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