#787BCC#787BCC

#787BCC is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.6% C 0.121 H 280.6°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#787BCC
RGBrgb(120, 123, 204)
HSLhsl(238, 45%, 64%)
HSVhsv(238, 41%, 80%)
CMYKcmyk(41.2%, 39.7%, 0%, 20%)
CIE-LABlab(54.57, 19.24, -42.39)
CIE-LCHlch(54.57, 46.55, 294.41°)
OKLaboklab(61.57% 0.0223 -0.1194)
OKLCHoklch(61.57% 0.121 280.6)
XYZxyz(25.7246, 22.5175, 60.1059)
Luminance0.2252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BCC #CCC978
analogous
#78A5CC #787BCC #9F78CC
triadic
#787BCC #CC787B #7BCC78
tetradic
#787BCC #CC78A5 #CCC978 #78CC9F
square
#787BCC #CC78A5 #CCC978 #78CC9F
split-complementary
#787BCC #CC9F78 #A5CC78
monochromatic
#373B92 #4C50BB #787BCC #A4A6DD #D1D2EE

Accessibility & contrast

On white

3.82
#787BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#787BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BCC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BCC#FFFFFF#000000##000000
##787BCC1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86CF
Deuteranopia (green-blind)
#5A80CA
Tritanopia (blue-blind)
#5E8B9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787bcc;
/* rgb */ color: rgb(120, 123, 204);
/* oklch */ color: oklch(61.6% 0.121 280.6);
Tailwind
colors: {
  custom: {
    50: '#a2a1dc',
    500: '#787bcc',
    950: '#000000',
  },
}
SCSS
$custom: #787bcc;
$custom-light: #a2a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787bcc",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 204
  },
  "hsl": {
    "h": 237.857,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.12143,
    "h": 280.6
  },
  "luminance": 0.22519
}

Semantic roles & 50–950 ramp

primary
#787BCC
secondary
#DFDEC1
accent
#B32DB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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