#787DA8#787DA8

#787DA8 is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.2% C 0.066 H 279.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#787DA8
RGBrgb(120, 125, 168)
HSLhsl(234, 22%, 56%)
HSVhsv(234, 29%, 66%)
CMYKcmyk(28.6%, 25.6%, 0%, 34.1%)
CIE-LABlab(53.48, 8.19, -23.47)
CIE-LCHlch(53.48, 24.86, 289.24°)
OKLaboklab(60.2% 0.0104 -0.0648)
OKLCHoklch(60.2% 0.066 279.1)
XYZxyz(22.1453, 21.4869, 40.0188)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DA8 #A8A378
analogous
#7895A8 #787DA8 #8B78A8
triadic
#787DA8 #A8787D #7DA878
tetradic
#787DA8 #A87895 #A8A378 #78A88B
square
#787DA8 #A87895 #A8A378 #78A88B
split-complementary
#787DA8 #A88B78 #95A878
monochromatic
#414565 #595E8A #787DA8 #9DA1C0 #C2C5D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787DA8#FFFFFF#000000##000000
##787DA81.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)
#7182AA
Deuteranopia (green-blind)
#6E7EA7
Tritanopia (blue-blind)
#6C858C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787da8;
/* rgb */ color: rgb(120, 125, 168);
/* oklch */ color: oklch(60.2% 0.066 279.1);
Tailwind
colors: {
  custom: {
    50: '#a0a2c2',
    500: '#787da8',
    950: '#000000',
  },
}
SCSS
$custom: #787da8;
$custom-light: #a0a2c2;
$custom-dark: #000000;
JSON
{
  "hex": "#787da8",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 168
  },
  "hsl": {
    "h": 233.75,
    "s": 21.622,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60196,
    "c": 0.06563,
    "h": 279.1
  },
  "luminance": 0.21487
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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