#787CBB#787CBB

#787CBB is a mid, moderate blue. Relative luminance 0.220; OKLCH L 60.9% C 0.095 H 280.4°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#787CBB
RGBrgb(120, 124, 187)
HSLhsl(236, 33%, 60%)
HSVhsv(236, 36%, 73%)
CMYKcmyk(35.8%, 33.7%, 0%, 26.7%)
CIE-LABlab(54.02, 13.86, -33.56)
CIE-LCHlch(54.02, 36.31, 292.44°)
OKLaboklab(60.89% 0.0172 -0.0937)
OKLCHoklch(60.89% 0.095 280.4)
XYZxyz(23.9205, 21.9954, 49.9893)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CBB #BBB778
analogous
#789DBB #787CBB #9578BB
triadic
#787CBB #BB787C #7CBB78
tetradic
#787CBB #BB789D #BBB778 #78BB95
square
#787CBB #BB789D #BBB778 #78BB95
split-complementary
#787CBB #BB9578 #9DBB78
monochromatic
#3E417B #5257A3 #787CBB #A1A3D0 #C9CBE4

Accessibility & contrast

On white

3.89
#787CBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#787CBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CBB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CBB#FFFFFF#000000##000000
##787CBB1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6884BE
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#668893
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787cbb;
/* rgb */ color: rgb(120, 124, 187);
/* oklch */ color: oklch(60.9% 0.095 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1cf',
    500: '#787cbb',
    950: '#000000',
  },
}
SCSS
$custom: #787cbb;
$custom-light: #a1a1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787cbb",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 187
  },
  "hsl": {
    "h": 236.418,
    "s": 33.005,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.0953,
    "h": 280.4
  },
  "luminance": 0.21996
}

Semantic roles & 50–950 ramp

primary
#787CBB
secondary
#D4D3BB
accent
#A53AAC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #787CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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