#787ECD#787ECD

#787ECD is a light, moderate blue. Relative luminance 0.233; OKLCH L 62.2% C 0.119 H 279.0°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#787ECD
RGBrgb(120, 126, 205)
HSLhsl(236, 46%, 64%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(41.5%, 38.5%, 0%, 19.6%)
CIE-LABlab(55.40, 17.73, -41.65)
CIE-LCHlch(55.40, 45.26, 293.06°)
OKLaboklab(62.22% 0.0187 -0.1172)
OKLCHoklch(62.22% 0.119 279)
XYZxyz(26.2228, 23.3214, 60.8656)
Luminance0.2332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ECD #CDC778
analogous
#78A8CD #787ECD #9C78CD
triadic
#787ECD #CD787E #7ECD78
tetradic
#787ECD #CD78A8 #CDC778 #78CD9C
square
#787ECD #CD78A8 #CDC778 #78CD9C
split-complementary
#787ECD #CD9C78 #A8CD78
monochromatic
#373D94 #4B53BC #787ECD #A5A9DE #D1D3EE

Accessibility & contrast

On white

3.71
#787ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#787ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ECD
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ECD#FFFFFF#000000##000000
##787ECD1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6288D0
Deuteranopia (green-blind)
#5D82CB
Tritanopia (blue-blind)
#5D8E9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787ecd;
/* rgb */ color: rgb(120, 126, 205);
/* oklch */ color: oklch(62.2% 0.119 279.0);
Tailwind
colors: {
  custom: {
    50: '#a2a3dc',
    500: '#787ecd',
    950: '#000000',
  },
}
SCSS
$custom: #787ecd;
$custom-light: #a2a3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787ecd",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 205
  },
  "hsl": {
    "h": 235.765,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62224,
    "c": 0.11867,
    "h": 279
  },
  "luminance": 0.23323
}

Semantic roles & 50–950 ramp

primary
#787ECD
secondary
#DFDDC1
accent
#AF2CB9
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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