#787DAA#787DAA

#787DAA is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.3% C 0.069 H 279.2°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#787DAA
RGBrgb(120, 125, 170)
HSLhsl(234, 23%, 57%)
HSVhsv(234, 29%, 67%)
CMYKcmyk(29.4%, 26.5%, 0%, 33.3%)
CIE-LABlab(53.56, 8.71, -24.50)
CIE-LCHlch(53.56, 26.01, 289.57°)
OKLaboklab(60.29% 0.011 -0.0677)
OKLCHoklch(60.29% 0.069 279.2)
XYZxyz(22.3331, 21.5620, 41.0076)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DAA #AAA578
analogous
#7896AA #787DAA #8C78AA
triadic
#787DAA #AA787D #7DAA78
tetradic
#787DAA #AA7896 #AAA578 #78AA8C
square
#787DAA #AA7896 #AAA578 #78AA8C
split-complementary
#787DAA #AA8C78 #96AA78
monochromatic
#414567 #585E8C #787DAA #9EA1C2 #C3C5D9

Accessibility & contrast

On white

3.95
#787DAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#787DAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DAA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DAA#FFFFFF#000000##000000
##787DAA1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7082AC
Deuteranopia (green-blind)
#6D7EA9
Tritanopia (blue-blind)
#6B858D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787daa;
/* rgb */ color: rgb(120, 125, 170);
/* oklch */ color: oklch(60.3% 0.069 279.2);
Tailwind
colors: {
  custom: {
    50: '#a0a2c3',
    500: '#787daa',
    950: '#000000',
  },
}
SCSS
$custom: #787daa;
$custom-light: #a0a2c3;
$custom-dark: #000000;
JSON
{
  "hex": "#787daa",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 170
  },
  "hsl": {
    "h": 234,
    "s": 22.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60285,
    "c": 0.06862,
    "h": 279.2
  },
  "luminance": 0.21563
}

Semantic roles & 50–950 ramp

primary
#787DAA
secondary
#C9C7B5
accent
#B769BF
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #787DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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