#787EAA#787EAA

#787EAA is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.5% C 0.067 H 278.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#787EAA
RGBrgb(120, 126, 170)
HSLhsl(233, 23%, 57%)
HSVhsv(233, 29%, 67%)
CMYKcmyk(29.4%, 25.9%, 0%, 33.3%)
CIE-LABlab(53.83, 8.12, -24.08)
CIE-LCHlch(53.83, 25.42, 288.64°)
OKLaboklab(60.5% 0.0096 -0.0665)
OKLCHoklch(60.5% 0.067 278.2)
XYZxyz(22.4603, 21.8164, 41.0500)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EAA #AAA478
analogous
#7897AA #787EAA #8B78AA
triadic
#787EAA #AA787E #7EAA78
tetradic
#787EAA #AA7897 #AAA478 #78AA8B
square
#787EAA #AA7897 #AAA478 #78AA8B
split-complementary
#787EAA #AA8B78 #97AA78
monochromatic
#414567 #585F8C #787EAA #9EA2C2 #C3C6D9

Accessibility & contrast

On white

3.92
#787EAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#787EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EAA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EAA#FFFFFF#000000##000000
##787EAA1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7183AC
Deuteranopia (green-blind)
#6E7FA9
Tritanopia (blue-blind)
#6B868D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787eaa;
/* rgb */ color: rgb(120, 126, 170);
/* oklch */ color: oklch(60.5% 0.067 278.2);
Tailwind
colors: {
  custom: {
    50: '#a0a3c3',
    500: '#787eaa',
    950: '#000000',
  },
}
SCSS
$custom: #787eaa;
$custom-light: #a0a3c3;
$custom-dark: #000000;
JSON
{
  "hex": "#787eaa",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 170
  },
  "hsl": {
    "h": 232.8,
    "s": 22.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60497,
    "c": 0.06723,
    "h": 278.2
  },
  "luminance": 0.21817
}

Semantic roles & 50–950 ramp

primary
#787EAA
secondary
#C9C7B5
accent
#B569BF
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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