#787ECB#787ECB

#787ECB is a light, moderate blue. Relative luminance 0.232; OKLCH L 62.1% C 0.116 H 279.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#787ECB
RGBrgb(120, 126, 203)
HSLhsl(236, 44%, 63%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(40.9%, 37.9%, 0%, 20.4%)
CIE-LABlab(55.30, 17.16, -40.67)
CIE-LCHlch(55.30, 44.14, 292.88°)
OKLaboklab(62.12% 0.0182 -0.1143)
OKLCHoklch(62.12% 0.116 279.1)
XYZxyz(25.9829, 23.2255, 59.6022)
Luminance0.2323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ECB #CBC578
analogous
#78A7CB #787ECB #9B78CB
triadic
#787ECB #CB787E #7ECB78
tetradic
#787ECB #CB78A7 #CBC578 #78CB9B
square
#787ECB #CB78A7 #CBC578 #78CB9B
split-complementary
#787ECB #CB9B78 #A7CB78
monochromatic
#383E91 #4C54BA #787ECB #A4A8DC #D0D2ED

Accessibility & contrast

On white

3.72
#787ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#787ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ECB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ECB#FFFFFF#000000##000000
##787ECB1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6388CE
Deuteranopia (green-blind)
#5E81C9
Tritanopia (blue-blind)
#5E8D9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787ecb;
/* rgb */ color: rgb(120, 126, 203);
/* oklch */ color: oklch(62.1% 0.116 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a3db',
    500: '#787ecb',
    950: '#000000',
  },
}
SCSS
$custom: #787ecb;
$custom-light: #a2a3db;
$custom-dark: #000000;
JSON
{
  "hex": "#787ecb",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 235.663,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62117,
    "c": 0.11579,
    "h": 279.1
  },
  "luminance": 0.23227
}

Semantic roles & 50–950 ramp

primary
#787ECB
secondary
#DEDCC1
accent
#AE2EB8
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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