#787CB4#787CB4

#787CB4 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.5% C 0.085 H 280.4°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#787CB4
RGBrgb(120, 124, 180)
HSLhsl(236, 29%, 59%)
HSVhsv(236, 33%, 71%)
CMYKcmyk(33.3%, 31.1%, 0%, 29.4%)
CIE-LABlab(53.71, 11.95, -30.03)
CIE-LCHlch(53.71, 32.32, 291.71°)
OKLaboklab(60.54% 0.0153 -0.0836)
OKLCHoklch(60.54% 0.085 280.4)
XYZxyz(23.1893, 21.7029, 46.1384)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB4 #B4B078
analogous
#789AB4 #787CB4 #9278B4
triadic
#787CB4 #B4787C #7CB478
tetradic
#787CB4 #B4789A #B4B078 #78B492
square
#787CB4 #B4789A #B4B078 #78B492
split-complementary
#787CB4 #B49278 #9AB478
monochromatic
#3F4372 #555A9A #787CB4 #9FA2CA #C7C8E0

Accessibility & contrast

On white

3.93
#787CB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#787CB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB4#FFFFFF#000000##000000
##787CB41.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B83B6
Deuteranopia (green-blind)
#687EB3
Tritanopia (blue-blind)
#688690
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787cb4;
/* rgb */ color: rgb(120, 124, 180);
/* oklch */ color: oklch(60.5% 0.085 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1ca',
    500: '#787cb4',
    950: '#000000',
  },
}
SCSS
$custom: #787cb4;
$custom-light: #a1a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb4",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 180
  },
  "hsl": {
    "h": 236,
    "s": 28.571,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60542,
    "c": 0.08496,
    "h": 280.4
  },
  "luminance": 0.21704
}

Semantic roles & 50–950 ramp

primary
#787CB4
secondary
#D0CEB8
accent
#BE63C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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