#787DCC#787DCC

#787DCC is a mid, moderate blue. Relative luminance 0.230; OKLCH L 62.0% C 0.119 H 279.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#787DCC
RGBrgb(120, 125, 204)
HSLhsl(236, 45%, 64%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(41.2%, 38.7%, 0%, 20%)
CIE-LABlab(55.09, 18.04, -41.57)
CIE-LCHlch(55.09, 45.32, 293.46°)
OKLaboklab(61.97% 0.0197 -0.117)
OKLCHoklch(61.97% 0.119 279.6)
XYZxyz(25.9752, 23.0188, 60.1895)
Luminance0.2302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DCC #CCC778
analogous
#78A7CC #787DCC #9D78CC
triadic
#787DCC #CC787D #7DCC78
tetradic
#787DCC #CC78A7 #CCC778 #78CC9D
square
#787DCC #CC78A7 #CCC778 #78CC9D
split-complementary
#787DCC #CC9D78 #A7CC78
monochromatic
#373D92 #4C52BB #787DCC #A4A8DD #D1D3EE

Accessibility & contrast

On white

3.75
#787DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#787DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DCC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DCC#FFFFFF#000000##000000
##787DCC1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187CF
Deuteranopia (green-blind)
#5C81CA
Tritanopia (blue-blind)
#5E8D9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787dcc;
/* rgb */ color: rgb(120, 125, 204);
/* oklch */ color: oklch(62.0% 0.119 279.6);
Tailwind
colors: {
  custom: {
    50: '#a2a2dc',
    500: '#787dcc',
    950: '#000000',
  },
}
SCSS
$custom: #787dcc;
$custom-light: #a2a2dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787dcc",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 204
  },
  "hsl": {
    "h": 236.429,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.6197,
    "c": 0.11862,
    "h": 279.6
  },
  "luminance": 0.2302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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