#787CEE#787CEE

#787CEE is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.8% C 0.168 H 279.0°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#787CEE
RGBrgb(120, 124, 238)
HSLhsl(238, 78%, 70%)
HSVhsv(238, 50%, 93%)
CMYKcmyk(49.6%, 47.9%, 0%, 6.7%)
CIE-LABlab(56.66, 28.66, -58.16)
CIE-LCHlch(56.66, 64.84, 296.24°)
OKLaboklab(63.76% 0.0262 -0.1655)
OKLCHoklch(63.76% 0.168 279)
XYZxyz(30.3812, 24.5797, 84.0158)
Luminance0.2458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CEE #EEEA78
analogous
#78B7EE #787CEE #AF78EE
triadic
#787CEE #EE787C #7CEE78
tetradic
#787CEE #EE78B7 #EEEA78 #78EEAF
square
#787CEE #EE78B7 #EEEA78 #78EEAF
split-complementary
#787CEE #EEAF78 #B7EE78
monochromatic
#1A21D1 #4247E7 #787CEE #AEB1F5 #E4E5FC

Accessibility & contrast

On white

3.55
#787CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#787CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CEE
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CEE#FFFFFF#000000##000000
##787CEE1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF2
Deuteranopia (green-blind)
#3E83EC
Tritanopia (blue-blind)
#4995AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787cee;
/* rgb */ color: rgb(120, 124, 238);
/* oklch */ color: oklch(63.8% 0.168 279.0);
Tailwind
colors: {
  custom: {
    50: '#a6a1f4',
    500: '#787cee',
    950: '#000000',
  },
}
SCSS
$custom: #787cee;
$custom-light: #a6a1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#787cee",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 238
  },
  "hsl": {
    "h": 237.966,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.63759,
    "c": 0.16759,
    "h": 279
  },
  "luminance": 0.24581
}

Semantic roles & 50–950 ramp

primary
#787CEE
secondary
#F1F0D1
accent
#D30CDA
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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