#787CB8#787CB8

#787CB8 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.7% C 0.091 H 280.4°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#787CB8
RGBrgb(120, 124, 184)
HSLhsl(236, 31%, 60%)
HSVhsv(236, 35%, 72%)
CMYKcmyk(34.8%, 32.6%, 0%, 27.8%)
CIE-LABlab(53.89, 13.04, -32.05)
CIE-LCHlch(53.89, 34.60, 292.14°)
OKLaboklab(60.74% 0.0164 -0.0894)
OKLCHoklch(60.74% 0.091 280.4)
XYZxyz(23.6027, 21.8683, 48.3155)
Luminance0.2187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB8 #B8B478
analogous
#789CB8 #787CB8 #9478B8
triadic
#787CB8 #B8787C #7CB878
tetradic
#787CB8 #B8789C #B8B478 #78B894
square
#787CB8 #B8789C #B8B478 #78B894
split-complementary
#787CB8 #B89478 #9CB878
monochromatic
#3F4277 #54589F #787CB8 #A0A3CD #C8CAE2

Accessibility & contrast

On white

3.91
#787CB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#787CB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB8#FFFFFF#000000##000000
##787CB81.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6983BA
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#678792
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787cb8;
/* rgb */ color: rgb(120, 124, 184);
/* oklch */ color: oklch(60.7% 0.091 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1cd',
    500: '#787cb8',
    950: '#000000',
  },
}
SCSS
$custom: #787cb8;
$custom-light: #a1a1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb8",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 184
  },
  "hsl": {
    "h": 236.25,
    "s": 31.068,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60736,
    "c": 0.09088,
    "h": 280.4
  },
  "luminance": 0.21869
}

Semantic roles & 50–950 ramp

primary
#787CB8
secondary
#D2D1B9
accent
#C161C7
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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