#787CEA#787CEA

#787CEA is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.5% C 0.162 H 279.1°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#787CEA
RGBrgb(120, 124, 234)
HSLhsl(238, 73%, 69%)
HSVhsv(238, 49%, 92%)
CMYKcmyk(48.7%, 47%, 0%, 8.2%)
CIE-LABlab(56.43, 27.46, -56.30)
CIE-LCHlch(56.43, 62.64, 296.00°)
OKLaboklab(63.51% 0.0258 -0.1601)
OKLCHoklch(63.51% 0.162 279.1)
XYZxyz(29.8001, 24.3472, 80.9552)
Luminance0.2435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CEA #EAE678
analogous
#78B5EA #787CEA #AD78EA
triadic
#787CEA #EA787C #7CEA78
tetradic
#787CEA #EA78B5 #EAE678 #78EAAD
square
#787CEA #EA78B5 #EAE678 #78EAAD
split-complementary
#787CEA #EAAD78 #B5EA78
monochromatic
#1F25C8 #4349E2 #787CEA #ADAFF2 #E2E3FA

Accessibility & contrast

On white

3.58
#787CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#787CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CEA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CEA#FFFFFF#000000##000000
##787CEA1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEE
Deuteranopia (green-blind)
#4283E8
Tritanopia (blue-blind)
#4D94A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787cea;
/* rgb */ color: rgb(120, 124, 234);
/* oklch */ color: oklch(63.5% 0.162 279.1);
Tailwind
colors: {
  custom: {
    50: '#a5a1f1',
    500: '#787cea',
    950: '#000000',
  },
}
SCSS
$custom: #787cea;
$custom-light: #a5a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#787cea",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 234
  },
  "hsl": {
    "h": 237.895,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.63511,
    "c": 0.16213,
    "h": 279.1
  },
  "luminance": 0.24349
}

Semantic roles & 50–950 ramp

primary
#787CEA
secondary
#EFEECE
accent
#CE10D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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