#787CD4#787CD4

#787CD4 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.2% C 0.131 H 279.9°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#787CD4
RGBrgb(120, 124, 212)
HSLhsl(237, 52%, 65%)
HSVhsv(237, 43%, 83%)
CMYKcmyk(43.4%, 41.5%, 0%, 16.9%)
CIE-LABlab(55.24, 20.95, -45.86)
CIE-LCHlch(55.24, 50.42, 294.55°)
OKLaboklab(62.21% 0.0225 -0.1295)
OKLCHoklch(62.21% 0.131 279.9)
XYZxyz(26.8335, 23.1606, 65.3311)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CD4 #D4D078
analogous
#78AAD4 #787CD4 #A278D4
triadic
#787CD4 #D4787C #7CD478
tetradic
#787CD4 #D478AA #D4D078 #78D4A2
square
#787CD4 #D478AA #D4D078 #78D4A2
split-complementary
#787CD4 #D4A278 #AAD478
monochromatic
#33379F #4A4FC5 #787CD4 #A6A9E3 #D5D6F2

Accessibility & contrast

On white

3.73
#787CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#787CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CD4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CD4#FFFFFF#000000##000000
##787CD41.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C88D7
Deuteranopia (green-blind)
#5681D2
Tritanopia (blue-blind)
#5A8E9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787cd4;
/* rgb */ color: rgb(120, 124, 212);
/* oklch */ color: oklch(62.2% 0.131 279.9);
Tailwind
colors: {
  custom: {
    50: '#a3a1e1',
    500: '#787cd4',
    950: '#000000',
  },
}
SCSS
$custom: #787cd4;
$custom-light: #a3a1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#787cd4",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 237.391,
    "s": 51.685,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62214,
    "c": 0.13145,
    "h": 279.9
  },
  "luminance": 0.23162
}

Semantic roles & 50–950 ramp

primary
#787CD4
secondary
#E3E2C4
accent
#B826BF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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