#787CD2#787CD2

#787CD2 is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.1% C 0.129 H 279.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#787CD2
RGBrgb(120, 124, 210)
HSLhsl(237, 50%, 65%)
HSVhsv(237, 43%, 82%)
CMYKcmyk(42.9%, 41%, 0%, 17.6%)
CIE-LABlab(55.13, 20.37, -44.90)
CIE-LCHlch(55.13, 49.30, 294.40°)
OKLaboklab(62.1% 0.0222 -0.1267)
OKLCHoklch(62.1% 0.129 279.9)
XYZxyz(26.5828, 23.0603, 64.0107)
Luminance0.2306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CD2 #D2CE78
analogous
#78A9D2 #787CD2 #A178D2
triadic
#787CD2 #D2787C #7CD278
tetradic
#787CD2 #D278A9 #D2CE78 #78D2A1
square
#787CD2 #D278A9 #D2CE78 #78D2A1
split-complementary
#787CD2 #D2A178 #A9D278
monochromatic
#34399C #4A4FC3 #787CD2 #A6A9E1 #D4D5F1

Accessibility & contrast

On white

3.74
#787CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#787CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CD2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CD2#FFFFFF#000000##000000
##787CD21.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D87D5
Deuteranopia (green-blind)
#5781D0
Tritanopia (blue-blind)
#5B8D9D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787cd2;
/* rgb */ color: rgb(120, 124, 210);
/* oklch */ color: oklch(62.1% 0.129 279.9);
Tailwind
colors: {
  custom: {
    50: '#a3a1e0',
    500: '#787cd2',
    950: '#000000',
  },
}
SCSS
$custom: #787cd2;
$custom-light: #a3a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#787cd2",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 210
  },
  "hsl": {
    "h": 237.333,
    "s": 50,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62102,
    "c": 0.12861,
    "h": 279.9
  },
  "luminance": 0.23062
}

Semantic roles & 50–950 ramp

primary
#787CD2
secondary
#E2E1C3
accent
#B728BD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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