#787AA2#787AA2

#787AA2 is a mid, moderate blue. Relative luminance 0.205; OKLCH L 59.3% C 0.061 H 282.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#787AA2
RGBrgb(120, 122, 162)
HSLhsl(237, 18%, 55%)
HSVhsv(237, 26%, 64%)
CMYKcmyk(25.9%, 24.7%, 0%, 36.5%)
CIE-LABlab(52.42, 8.43, -21.62)
CIE-LCHlch(52.42, 23.21, 291.31°)
OKLaboklab(59.3% 0.0128 -0.0595)
OKLCHoklch(59.3% 0.061 282.1)
XYZxyz(21.2252, 20.5203, 37.0180)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AA2 #A2A078
analogous
#788FA2 #787AA2 #8B78A2
triadic
#787AA2 #A2787A #7AA278
tetradic
#787AA2 #A2788F #A2A078 #78A28B
square
#787AA2 #A2788F #A2A078 #78A28B
split-complementary
#787AA2 #A28B78 #8FA278
monochromatic
#41425E #5A5C83 #787AA2 #9C9EBB #C0C1D4

Accessibility & contrast

On white

4.11
#787AA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#787AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AA2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AA2#FFFFFF#000000##000000
##787AA21.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F7EA4
Deuteranopia (green-blind)
#6D7CA1
Tritanopia (blue-blind)
#6E8188
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #787aa2;
/* rgb */ color: rgb(120, 122, 162);
/* oklch */ color: oklch(59.3% 0.061 282.1);
Tailwind
colors: {
  custom: {
    50: '#a0a0bd',
    500: '#787aa2',
    950: '#000000',
  },
}
SCSS
$custom: #787aa2;
$custom-light: #a0a0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#787aa2",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 162
  },
  "hsl": {
    "h": 237.143,
    "s": 18.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59296,
    "c": 0.0609,
    "h": 282.1
  },
  "luminance": 0.20521
}

Semantic roles & 50–950 ramp

primary
#787AA2
secondary
#C4C3B2
accent
#B76DBB
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0E12
muted
#7E7E81

Preview Lab

Preview with #787AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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