#787CCC#787CCC

#787CCC is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.8% C 0.120 H 280.1°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#787CCC
RGBrgb(120, 124, 204)
HSLhsl(237, 45%, 64%)
HSVhsv(237, 41%, 80%)
CMYKcmyk(41.2%, 39.2%, 0%, 20%)
CIE-LABlab(54.83, 18.64, -41.98)
CIE-LCHlch(54.83, 45.93, 293.94°)
OKLaboklab(61.77% 0.021 -0.1182)
OKLCHoklch(61.77% 0.12 280.1)
XYZxyz(25.8493, 22.7669, 60.1475)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CCC #CCC878
analogous
#78A6CC #787CCC #9E78CC
triadic
#787CCC #CC787C #7CCC78
tetradic
#787CCC #CC78A6 #CCC878 #78CC9E
square
#787CCC #CC78A6 #CCC878 #78CC9E
split-complementary
#787CCC #CC9E78 #A6CC78
monochromatic
#373C92 #4C51BB #787CCC #A4A7DD #D1D2EE

Accessibility & contrast

On white

3.78
#787CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#787CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CCC
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CCC#FFFFFF#000000##000000
##787CCC1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6086CF
Deuteranopia (green-blind)
#5B80CA
Tritanopia (blue-blind)
#5E8C9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ccc;
/* rgb */ color: rgb(120, 124, 204);
/* oklch */ color: oklch(61.8% 0.120 280.1);
Tailwind
colors: {
  custom: {
    50: '#a2a1dc',
    500: '#787ccc',
    950: '#000000',
  },
}
SCSS
$custom: #787ccc;
$custom-light: #a2a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787ccc",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 204
  },
  "hsl": {
    "h": 237.143,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61771,
    "c": 0.12003,
    "h": 280.1
  },
  "luminance": 0.22768
}

Semantic roles & 50–950 ramp

primary
#787CCC
secondary
#DFDDC1
accent
#B22DB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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