#787ED2#787ED2

#787ED2 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.5% C 0.126 H 279.0°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#787ED2
RGBrgb(120, 126, 210)
HSLhsl(236, 50%, 65%)
HSVhsv(236, 43%, 82%)
CMYKcmyk(42.9%, 40%, 0%, 17.6%)
CIE-LABlab(55.65, 19.18, -44.08)
CIE-LCHlch(55.65, 48.07, 293.51°)
OKLaboklab(62.5% 0.0197 -0.1243)
OKLCHoklch(62.5% 0.126 279)
XYZxyz(26.8360, 23.5667, 64.0951)
Luminance0.2357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ED2 #D2CC78
analogous
#78ABD2 #787ED2 #9F78D2
triadic
#787ED2 #D2787E #7ED278
tetradic
#787ED2 #D278AB #D2CC78 #78D29F
square
#787ED2 #D278AB #D2CC78 #78D29F
split-complementary
#787ED2 #D29F78 #ABD278
monochromatic
#343B9C #4A52C3 #787ED2 #A6AAE1 #D4D6F1

Accessibility & contrast

On white

3.68
#787ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#787ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ED2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ED2#FFFFFF#000000##000000
##787ED21.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6089D5
Deuteranopia (green-blind)
#5A82D0
Tritanopia (blue-blind)
#5B8F9E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787ed2;
/* rgb */ color: rgb(120, 126, 210);
/* oklch */ color: oklch(62.5% 0.126 279.0);
Tailwind
colors: {
  custom: {
    50: '#a3a3e0',
    500: '#787ed2',
    950: '#000000',
  },
}
SCSS
$custom: #787ed2;
$custom-light: #a3a3e0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ed2",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 210
  },
  "hsl": {
    "h": 236,
    "s": 50,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62497,
    "c": 0.12583,
    "h": 279
  },
  "luminance": 0.23568
}

Semantic roles & 50–950 ramp

primary
#787ED2
secondary
#E2E0C3
accent
#B328BD
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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