#787DA7#787DA7

#787DA7 is a mid, moderate blue. Relative luminance 0.214; OKLCH L 60.2% C 0.064 H 279.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#787DA7
RGBrgb(120, 125, 167)
HSLhsl(234, 21%, 56%)
HSVhsv(234, 28%, 65%)
CMYKcmyk(28.1%, 25.1%, 0%, 34.5%)
CIE-LABlab(53.44, 7.94, -22.96)
CIE-LCHlch(53.44, 24.29, 289.07°)
OKLaboklab(60.15% 0.01 -0.0633)
OKLCHoklch(60.15% 0.064 279)
XYZxyz(22.0525, 21.4497, 39.5301)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DA7 #A7A278
analogous
#7895A7 #787DA7 #8B78A7
triadic
#787DA7 #A7787D #7DA778
tetradic
#787DA7 #A77895 #A7A278 #78A78B
square
#787DA7 #A77895 #A7A278 #78A78B
split-complementary
#787DA7 #A78B78 #95A778
monochromatic
#414564 #595E89 #787DA7 #9DA1BF #C2C4D7

Accessibility & contrast

On white

3.97
#787DA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#787DA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DA7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DA7#FFFFFF#000000##000000
##787DA71.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7181A9
Deuteranopia (green-blind)
#6E7EA6
Tritanopia (blue-blind)
#6C858B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787da7;
/* rgb */ color: rgb(120, 125, 167);
/* oklch */ color: oklch(60.2% 0.064 279.0);
Tailwind
colors: {
  custom: {
    50: '#a0a2c1',
    500: '#787da7',
    950: '#000000',
  },
}
SCSS
$custom: #787da7;
$custom-light: #a0a2c1;
$custom-dark: #000000;
JSON
{
  "hex": "#787da7",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 167
  },
  "hsl": {
    "h": 233.617,
    "s": 21.076,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60152,
    "c": 0.06413,
    "h": 279
  },
  "luminance": 0.2145
}

Semantic roles & 50–950 ramp

primary
#787DA7
secondary
#C7C5B4
accent
#B56ABE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #787DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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