#787BA2#787BA2

#787BA2 is a mid, muted blue. Relative luminance 0.208; OKLCH L 59.5% C 0.059 H 281.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#787BA2
RGBrgb(120, 123, 162)
HSLhsl(236, 18%, 55%)
HSVhsv(236, 26%, 64%)
CMYKcmyk(25.9%, 24.1%, 0%, 36.5%)
CIE-LABlab(52.69, 7.84, -21.20)
CIE-LCHlch(52.69, 22.61, 290.30°)
OKLaboklab(59.51% 0.0113 -0.0584)
OKLCHoklch(59.51% 0.059 281)
XYZxyz(21.3486, 20.7671, 37.0591)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BA2 #A29F78
analogous
#7890A2 #787BA2 #8A78A2
triadic
#787BA2 #A2787B #7BA278
tetradic
#787BA2 #A27890 #A29F78 #78A28A
square
#787BA2 #A27890 #A29F78 #78A28A
split-complementary
#787BA2 #A28A78 #90A278
monochromatic
#41435E #5A5D83 #787BA2 #9C9EBB #C0C2D4

Accessibility & contrast

On white

4.07
#787BA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#787BA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BA2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BA2#FFFFFF#000000##000000
##787BA21.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#707FA4
Deuteranopia (green-blind)
#6E7CA1
Tritanopia (blue-blind)
#6E8288
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #787ba2;
/* rgb */ color: rgb(120, 123, 162);
/* oklch */ color: oklch(59.5% 0.059 281.0);
Tailwind
colors: {
  custom: {
    50: '#9fa1bd',
    500: '#787ba2',
    950: '#000000',
  },
}
SCSS
$custom: #787ba2;
$custom-light: #9fa1bd;
$custom-dark: #000000;
JSON
{
  "hex": "#787ba2",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 162
  },
  "hsl": {
    "h": 235.714,
    "s": 18.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59508,
    "c": 0.05945,
    "h": 281
  },
  "luminance": 0.20768
}

Semantic roles & 50–950 ramp

primary
#787BA2
secondary
#C4C2B2
accent
#B56DBB
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0E12
muted
#7E7E81

Preview Lab

Preview with #787BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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