#787FCC#787FCC

#787FCC is a light, moderate blue. Relative luminance 0.235; OKLCH L 62.4% C 0.116 H 278.5°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#787FCC
RGBrgb(120, 127, 204)
HSLhsl(235, 45%, 64%)
HSVhsv(235, 41%, 80%)
CMYKcmyk(41.2%, 37.7%, 0%, 20%)
CIE-LABlab(55.61, 16.85, -40.75)
CIE-LCHlch(55.61, 44.09, 292.47°)
OKLaboklab(62.37% 0.0172 -0.1146)
OKLCHoklch(62.37% 0.116 278.5)
XYZxyz(26.2310, 23.5303, 60.2747)
Luminance0.2353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FCC #CCC578
analogous
#78A9CC #787FCC #9B78CC
triadic
#787FCC #CC787F #7FCC78
tetradic
#787FCC #CC78A9 #CCC578 #78CC9B
square
#787FCC #CC78A9 #CCC578 #78CC9B
split-complementary
#787FCC #CC9B78 #A9CC78
monochromatic
#373F92 #4C55BB #787FCC #A4A9DD #D1D3EE

Accessibility & contrast

On white

3.68
#787FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#787FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FCC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FCC#FFFFFF#000000##000000
##787FCC1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6489CF
Deuteranopia (green-blind)
#5F82CA
Tritanopia (blue-blind)
#5E8E9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787fcc;
/* rgb */ color: rgb(120, 127, 204);
/* oklch */ color: oklch(62.4% 0.116 278.5);
Tailwind
colors: {
  custom: {
    50: '#a2a4dc',
    500: '#787fcc',
    950: '#000000',
  },
}
SCSS
$custom: #787fcc;
$custom-light: #a2a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787fcc",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 204
  },
  "hsl": {
    "h": 235,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62371,
    "c": 0.11584,
    "h": 278.5
  },
  "luminance": 0.23531
}

Semantic roles & 50–950 ramp

primary
#787FCC
secondary
#DFDCC1
accent
#AD2DB8
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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