#787EE4#787EE4

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

Color values

HEX#787EE4
RGBrgb(120, 126, 228)
HSLhsl(237, 67%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(47.4%, 44.7%, 0%, 10.6%)
CIE-LABlab(56.60, 24.47, -52.69)
CIE-LCHlch(56.60, 58.09, 294.92°)
OKLaboklab(63.53% 0.0227 -0.1495)
OKLCHoklch(63.53% 0.151 278.6)
XYZxyz(29.2059, 24.5146, 76.5766)
Luminance0.2452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE4 #E4DE78
analogous
#78B4E4 #787EE4 #A878E4
triadic
#787EE4 #E4787E #7EE478
tetradic
#787EE4 #E478B4 #E4DE78 #78E4A8
square
#787EE4 #E478B4 #E4DE78 #78E4A8
split-complementary
#787EE4 #E4A878 #B4E478
monochromatic
#262EBC #454DDA #787EE4 #ABAFEE #DEDFF8

Accessibility & contrast

On white

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

On black

5.90
#787EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE4
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE4#FFFFFF#000000##000000
##787EE41.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#548CE8
Deuteranopia (green-blind)
#4C84E2
Tritanopia (blue-blind)
#5094A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee4;
/* rgb */ color: rgb(120, 126, 228);
/* oklch */ color: oklch(63.5% 0.151 278.6);
Tailwind
colors: {
  custom: {
    50: '#a5a3ed',
    500: '#787ee4',
    950: '#000000',
  },
}
SCSS
$custom: #787ee4;
$custom-light: #a5a3ed;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee4",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 228
  },
  "hsl": {
    "h": 236.667,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63528,
    "c": 0.15117,
    "h": 278.6
  },
  "luminance": 0.24516
}

Semantic roles & 50–950 ramp

primary
#787EE4
secondary
#ECEACC
accent
#C417CF
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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