#787EE3#787EE3

#787EE3 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.5% C 0.150 H 278.7°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#787EE3
RGBrgb(120, 126, 227)
HSLhsl(237, 66%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(47.1%, 44.5%, 0%, 11%)
CIE-LABlab(56.54, 24.18, -52.22)
CIE-LCHlch(56.54, 57.54, 294.84°)
OKLaboklab(63.47% 0.0225 -0.1481)
OKLCHoklch(63.47% 0.15 278.7)
XYZxyz(29.0675, 24.4593, 75.8476)
Luminance0.2446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE3 #E3DD78
analogous
#78B3E3 #787EE3 #A878E3
triadic
#787EE3 #E3787E #7EE378
tetradic
#787EE3 #E378B3 #E3DD78 #78E3A8
square
#787EE3 #E378B3 #E3DD78 #78E3A8
split-complementary
#787EE3 #E3A878 #B3E378
monochromatic
#272FBA #454ED8 #787EE3 #ABAEEE #DDDFF8

Accessibility & contrast

On white

3.56
#787EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#787EE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE3
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE3#FFFFFF#000000##000000
##787EE31.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#558CE7
Deuteranopia (green-blind)
#4D84E1
Tritanopia (blue-blind)
#5193A5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee3;
/* rgb */ color: rgb(120, 126, 227);
/* oklch */ color: oklch(63.5% 0.150 278.7);
Tailwind
colors: {
  custom: {
    50: '#a5a3ec',
    500: '#787ee3',
    950: '#000000',
  },
}
SCSS
$custom: #787ee3;
$custom-light: #a5a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee3",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 227
  },
  "hsl": {
    "h": 236.636,
    "s": 65.644,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63469,
    "c": 0.14977,
    "h": 278.7
  },
  "luminance": 0.24461
}

Semantic roles & 50–950 ramp

primary
#787EE3
secondary
#ECEACB
accent
#C318CD
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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