#787BB2#787BB2

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

Color values

HEX#787BB2
RGBrgb(120, 123, 178)
HSLhsl(237, 27%, 58%)
HSVhsv(237, 33%, 70%)
CMYKcmyk(32.6%, 30.9%, 0%, 30.2%)
CIE-LABlab(53.35, 12.01, -29.43)
CIE-LCHlch(53.35, 31.79, 292.20°)
OKLaboklab(60.24% 0.0162 -0.0819)
OKLCHoklch(60.24% 0.083 281.2)
XYZxyz(22.8624, 21.3726, 45.0316)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BB2 #B2AF78
analogous
#7898B2 #787BB2 #9278B2
triadic
#787BB2 #B2787B #7BB278
tetradic
#787BB2 #B27898 #B2AF78 #78B292
square
#787BB2 #B27898 #B2AF78 #78B292
split-complementary
#787BB2 #B29278 #98B278
monochromatic
#404270 #565997 #787BB2 #9FA1C8 #C6C7DE

Accessibility & contrast

On white

3.98
#787BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787BB2#FFFFFF#000000##000000
##787BB21.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B82B4
Deuteranopia (green-blind)
#687EB1
Tritanopia (blue-blind)
#69858F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787bb2;
/* rgb */ color: rgb(120, 123, 178);
/* oklch */ color: oklch(60.2% 0.083 281.2);
Tailwind
colors: {
  custom: {
    50: '#a0a1c9',
    500: '#787bb2',
    950: '#000000',
  },
}
SCSS
$custom: #787bb2;
$custom-light: #a0a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#787bb2",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 236.897,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60238,
    "c": 0.08343,
    "h": 281.2
  },
  "luminance": 0.21373
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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