#787EEA#787EEA

#787EEA is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.159 H 278.5°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#787EEA
RGBrgb(120, 126, 234)
HSLhsl(237, 73%, 69%)
HSVhsv(237, 49%, 92%)
CMYKcmyk(48.7%, 46.2%, 0%, 8.2%)
CIE-LABlab(56.93, 26.27, -55.50)
CIE-LCHlch(56.93, 61.41, 295.33°)
OKLaboklab(63.89% 0.0235 -0.1577)
OKLCHoklch(63.89% 0.159 278.5)
XYZxyz(30.0533, 24.8536, 81.0396)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EEA #EAE478
analogous
#78B7EA #787EEA #AB78EA
triadic
#787EEA #EA787E #7EEA78
tetradic
#787EEA #EA78B7 #EAE478 #78EAAB
square
#787EEA #EA78B7 #EAE478 #78EAAB
split-complementary
#787EEA #EAAB78 #B7EA78
monochromatic
#1F28C8 #434BE2 #787EEA #ADB1F2 #E2E3FA

Accessibility & contrast

On white

3.52
#787EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#787EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EEA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EEA#FFFFFF#000000##000000
##787EEA1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#4684E8
Tritanopia (blue-blind)
#4C95A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787eea;
/* rgb */ color: rgb(120, 126, 234);
/* oklch */ color: oklch(63.9% 0.159 278.5);
Tailwind
colors: {
  custom: {
    50: '#a5a3f1',
    500: '#787eea',
    950: '#000000',
  },
}
SCSS
$custom: #787eea;
$custom-light: #a5a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#787eea",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 236.842,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.63888,
    "c": 0.15945,
    "h": 278.5
  },
  "luminance": 0.24855
}

Semantic roles & 50–950 ramp

primary
#787EEA
secondary
#EFEECE
accent
#CB10D5
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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