#787CB2#787CB2

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

Color values

HEX#787CB2
RGBrgb(120, 124, 178)
HSLhsl(236, 27%, 58%)
HSVhsv(236, 33%, 70%)
CMYKcmyk(32.6%, 30.3%, 0%, 30.2%)
CIE-LABlab(53.62, 11.42, -29.02)
CIE-LCHlch(53.62, 31.18, 291.48°)
OKLaboklab(60.45% 0.0148 -0.0806)
OKLCHoklch(60.45% 0.082 280.4)
XYZxyz(22.9871, 21.6220, 45.0732)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB2 #B2AE78
analogous
#7899B2 #787CB2 #9178B2
triadic
#787CB2 #B2787C #7CB278
tetradic
#787CB2 #B27899 #B2AE78 #78B291
square
#787CB2 #B27899 #B2AE78 #78B291
split-complementary
#787CB2 #B29178 #99B278
monochromatic
#404370 #565A97 #787CB2 #9FA2C8 #C6C8DE

Accessibility & contrast

On white

3.94
#787CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787CB2#FFFFFF#000000##000000
##787CB21.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787cb2;
/* rgb */ color: rgb(120, 124, 178);
/* oklch */ color: oklch(60.4% 0.082 280.4);
Tailwind
colors: {
  custom: {
    50: '#a0a1c9',
    500: '#787cb2',
    950: '#000000',
  },
}
SCSS
$custom: #787cb2;
$custom-light: #a0a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb2",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 178
  },
  "hsl": {
    "h": 235.862,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60446,
    "c": 0.08199,
    "h": 280.4
  },
  "luminance": 0.21623
}

Semantic roles & 50–950 ramp

primary
#787CB2
secondary
#CECDB7
accent
#BD64C4
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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