#787CB1#787CB1

#787CB1 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.4% C 0.081 H 280.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#787CB1
RGBrgb(120, 124, 177)
HSLhsl(236, 27%, 58%)
HSVhsv(236, 32%, 69%)
CMYKcmyk(32.2%, 29.9%, 0%, 30.6%)
CIE-LABlab(53.58, 11.15, -28.51)
CIE-LCHlch(53.58, 30.61, 291.36°)
OKLaboklab(60.4% 0.0145 -0.0792)
OKLCHoklch(60.4% 0.081 280.4)
XYZxyz(22.8870, 21.5820, 44.5463)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB1 #B1AD78
analogous
#7898B1 #787CB1 #9078B1
triadic
#787CB1 #B1787C #7CB178
tetradic
#787CB1 #B17898 #B1AD78 #78B190
square
#787CB1 #B17898 #B1AD78 #78B190
split-complementary
#787CB1 #B19078 #98B178
monochromatic
#40436F #565B95 #787CB1 #9FA2C7 #C6C7DE

Accessibility & contrast

On white

3.95
#787CB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#787CB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB1
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB1#FFFFFF#000000##000000
##787CB11.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C82B3
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#69868F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787cb1;
/* rgb */ color: rgb(120, 124, 177);
/* oklch */ color: oklch(60.4% 0.081 280.4);
Tailwind
colors: {
  custom: {
    50: '#a0a1c8',
    500: '#787cb1',
    950: '#000000',
  },
}
SCSS
$custom: #787cb1;
$custom-light: #a0a1c8;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb1",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 177
  },
  "hsl": {
    "h": 235.789,
    "s": 26.761,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60399,
    "c": 0.0805,
    "h": 280.4
  },
  "luminance": 0.21583
}

Semantic roles & 50–950 ramp

primary
#787CB1
secondary
#CECCB7
accent
#BC65C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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