#787BB1#787BB1

#787BB1 is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.2% C 0.082 H 281.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#787BB1
RGBrgb(120, 123, 177)
HSLhsl(237, 27%, 58%)
HSVhsv(237, 32%, 69%)
CMYKcmyk(32.2%, 30.5%, 0%, 30.6%)
CIE-LABlab(53.31, 11.74, -28.92)
CIE-LCHlch(53.31, 31.22, 292.10°)
OKLaboklab(60.19% 0.0159 -0.0804)
OKLCHoklch(60.19% 0.082 281.2)
XYZxyz(22.7623, 21.3326, 44.5048)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BB1 #B1AE78
analogous
#7897B1 #787BB1 #9178B1
triadic
#787BB1 #B1787B #7BB178
tetradic
#787BB1 #B17897 #B1AE78 #78B191
square
#787BB1 #B17897 #B1AE78 #78B191
split-complementary
#787BB1 #B19178 #97B178
monochromatic
#40426F #565A95 #787BB1 #9FA1C7 #C6C7DE

Accessibility & contrast

On white

3.99
#787BB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#787BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BB1
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BB1#FFFFFF#000000##000000
##787BB11.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B81B3
Deuteranopia (green-blind)
#687DB0
Tritanopia (blue-blind)
#69858E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787bb1;
/* rgb */ color: rgb(120, 123, 177);
/* oklch */ color: oklch(60.2% 0.082 281.2);
Tailwind
colors: {
  custom: {
    50: '#a0a1c8',
    500: '#787bb1',
    950: '#000000',
  },
}
SCSS
$custom: #787bb1;
$custom-light: #a0a1c8;
$custom-dark: #000000;
JSON
{
  "hex": "#787bb1",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 177
  },
  "hsl": {
    "h": 236.842,
    "s": 26.761,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60191,
    "c": 0.08194,
    "h": 281.2
  },
  "luminance": 0.21333
}

Semantic roles & 50–950 ramp

primary
#787BB1
secondary
#CECDB7
accent
#BE65C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #787BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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