#787CA8#787CA8

#787CA8 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 60.0% C 0.067 H 280.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#787CA8
RGBrgb(120, 124, 168)
HSLhsl(235, 22%, 56%)
HSVhsv(235, 29%, 66%)
CMYKcmyk(28.6%, 26.2%, 0%, 34.1%)
CIE-LABlab(53.21, 8.78, -23.89)
CIE-LCHlch(53.21, 25.46, 290.19°)
OKLaboklab(59.98% 0.0118 -0.066)
OKLCHoklch(59.98% 0.067 280.1)
XYZxyz(22.0194, 21.2350, 39.9768)
Luminance0.2124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CA8 #A8A478
analogous
#7894A8 #787CA8 #8C78A8
triadic
#787CA8 #A8787C #7CA878
tetradic
#787CA8 #A87894 #A8A478 #78A88C
square
#787CA8 #A87894 #A8A478 #78A88C
split-complementary
#787CA8 #A88C78 #94A878
monochromatic
#414465 #595D8A #787CA8 #9DA0C0 #C2C4D8

Accessibility & contrast

On white

4.00
#787CA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#787CA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CA8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CA8#FFFFFF#000000##000000
##787CA81.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081AA
Deuteranopia (green-blind)
#6D7DA7
Tritanopia (blue-blind)
#6C848B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787ca8;
/* rgb */ color: rgb(120, 124, 168);
/* oklch */ color: oklch(60.0% 0.067 280.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1c2',
    500: '#787ca8',
    950: '#000000',
  },
}
SCSS
$custom: #787ca8;
$custom-light: #a0a1c2;
$custom-dark: #000000;
JSON
{
  "hex": "#787ca8",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 168
  },
  "hsl": {
    "h": 235,
    "s": 21.622,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59984,
    "c": 0.06705,
    "h": 280.1
  },
  "luminance": 0.21236
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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