#787EA2#787EA2

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

Color values

HEX#787EA2
RGBrgb(120, 126, 162)
HSLhsl(231, 18%, 55%)
HSVhsv(231, 26%, 64%)
CMYKcmyk(25.9%, 22.2%, 0%, 36.5%)
CIE-LABlab(53.52, 6.08, -19.94)
CIE-LCHlch(53.52, 20.85, 286.94°)
OKLaboklab(60.15% 0.007 -0.0548)
OKLCHoklch(60.15% 0.055 277.2)
XYZxyz(21.7265, 21.5229, 37.1850)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA2 #A29C78
analogous
#7893A2 #787EA2 #8778A2
triadic
#787EA2 #A2787E #7EA278
tetradic
#787EA2 #A27893 #A29C78 #78A287
square
#787EA2 #A27893 #A29C78 #78A287
split-complementary
#787EA2 #A28778 #93A278
monochromatic
#41455E #5A6083 #787EA2 #9CA1BB #C0C3D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787EA2#FFFFFF#000000##000000
##787EA21.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)
#7482A4
Deuteranopia (green-blind)
#717EA1
Tritanopia (blue-blind)
#6E858A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787ea2;
/* rgb */ color: rgb(120, 126, 162);
/* oklch */ color: oklch(60.1% 0.055 277.2);
Tailwind
colors: {
  custom: {
    50: '#9fa3bd',
    500: '#787ea2',
    950: '#000000',
  },
}
SCSS
$custom: #787ea2;
$custom-light: #9fa3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea2",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 231.429,
    "s": 18.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.60148,
    "c": 0.05524,
    "h": 277.2
  },
  "luminance": 0.21523
}

Semantic roles & 50–950 ramp

primary
#787EA2
secondary
#C4C1B2
accent
#B06DBB
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0E0F12
muted
#7E7F81

Preview Lab

Preview with #787EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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