#787CB6#787CB6

#787CB6 is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.6% C 0.088 H 280.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#787CB6
RGBrgb(120, 124, 182)
HSLhsl(236, 30%, 59%)
HSVhsv(236, 34%, 71%)
CMYKcmyk(34.1%, 31.9%, 0%, 28.6%)
CIE-LABlab(53.80, 12.50, -31.04)
CIE-LCHlch(53.80, 33.46, 291.93°)
OKLaboklab(60.64% 0.0159 -0.0865)
OKLCHoklch(60.64% 0.088 280.4)
XYZxyz(23.3945, 21.7850, 47.2192)
Luminance0.2179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB6 #B6B278
analogous
#789BB6 #787CB6 #9378B6
triadic
#787CB6 #B6787C #7CB678
tetradic
#787CB6 #B6789B #B6B278 #78B693
square
#787CB6 #B6789B #B6B278 #78B693
split-complementary
#787CB6 #B69378 #9BB678
monochromatic
#3F4275 #55599C #787CB6 #A0A3CB #C7C9E1

Accessibility & contrast

On white

3.92
#787CB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#787CB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB6#FFFFFF#000000##000000
##787CB61.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A83B8
Deuteranopia (green-blind)
#677EB5
Tritanopia (blue-blind)
#678791
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787cb6;
/* rgb */ color: rgb(120, 124, 182);
/* oklch */ color: oklch(60.6% 0.088 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1cc',
    500: '#787cb6',
    950: '#000000',
  },
}
SCSS
$custom: #787cb6;
$custom-light: #a1a1cc;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb6",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 182
  },
  "hsl": {
    "h": 236.129,
    "s": 29.808,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60638,
    "c": 0.08792,
    "h": 280.4
  },
  "luminance": 0.21786
}

Semantic roles & 50–950 ramp

primary
#787CB6
secondary
#D1CFB9
accent
#C062C6
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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