#787FEC#787FEC

#787FEC is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.2% C 0.161 H 278.1°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#787FEC
RGBrgb(120, 127, 236)
HSLhsl(236, 75%, 70%)
HSVhsv(236, 49%, 93%)
CMYKcmyk(49.2%, 46.2%, 0%, 7.5%)
CIE-LABlab(57.30, 26.28, -56.04)
CIE-LCHlch(57.30, 61.89, 295.12°)
OKLaboklab(64.2% 0.0226 -0.1593)
OKLCHoklch(64.2% 0.161 278.1)
XYZxyz(30.4707, 25.2262, 82.6042)
Luminance0.2523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FEC #ECE578
analogous
#78B9EC #787FEC #AB78EC
triadic
#787FEC #EC787F #7FEC78
tetradic
#787FEC #EC78B9 #ECE578 #78ECAB
square
#787FEC #EC78B9 #ECE578 #78ECAB
split-complementary
#787FEC #ECAB78 #B9EC78
monochromatic
#1D27CD #424CE4 #787FEC #AEB2F4 #E3E5FB

Accessibility & contrast

On white

3.47
#787FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#787FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FEC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FEC#FFFFFF#000000##000000
##787FEC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EF0
Deuteranopia (green-blind)
#4685EA
Tritanopia (blue-blind)
#4B96AA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787fec;
/* rgb */ color: rgb(120, 127, 236);
/* oklch */ color: oklch(64.2% 0.161 278.1);
Tailwind
colors: {
  custom: {
    50: '#a6a4f3',
    500: '#787fec',
    950: '#000000',
  },
}
SCSS
$custom: #787fec;
$custom-light: #a6a4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#787fec",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 236.379,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.642,
    "c": 0.16086,
    "h": 278.1
  },
  "luminance": 0.25228
}

Semantic roles & 50–950 ramp

primary
#787FEC
secondary
#F0EED0
accent
#CB0ED7
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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