#787ECF#787ECF

#787ECF is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.3% C 0.122 H 279.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#787ECF
RGBrgb(120, 126, 207)
HSLhsl(236, 48%, 64%)
HSVhsv(236, 42%, 81%)
CMYKcmyk(42%, 39.1%, 0%, 18.8%)
CIE-LABlab(55.50, 18.31, -42.62)
CIE-LCHlch(55.50, 46.39, 293.25°)
OKLaboklab(62.33% 0.0191 -0.12)
OKLCHoklch(62.33% 0.122 279)
XYZxyz(26.4657, 23.4186, 62.1451)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ECF #CFC978
analogous
#78AACF #787ECF #9E78CF
triadic
#787ECF #CF787E #7ECF78
tetradic
#787ECF #CF78AA #CFC978 #78CF9E
square
#787ECF #CF78AA #CFC978 #78CF9E
split-complementary
#787ECF #CF9E78 #AACF78
monochromatic
#363C97 #4B53BF #787ECF #A5A9DF #D2D4EF

Accessibility & contrast

On white

3.69
#787ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#787ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ECF
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ECF#FFFFFF#000000##000000
##787ECF1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6188D2
Deuteranopia (green-blind)
#5C82CD
Tritanopia (blue-blind)
#5D8E9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787ecf;
/* rgb */ color: rgb(120, 126, 207);
/* oklch */ color: oklch(62.3% 0.122 279.0);
Tailwind
colors: {
  custom: {
    50: '#a3a3de',
    500: '#787ecf',
    950: '#000000',
  },
}
SCSS
$custom: #787ecf;
$custom-light: #a3a3de;
$custom-dark: #000000;
JSON
{
  "hex": "#787ecf",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 235.862,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62332,
    "c": 0.12154,
    "h": 279
  },
  "luminance": 0.2342
}

Semantic roles & 50–950 ramp

primary
#787ECF
secondary
#E1DEC2
accent
#B12BBB
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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