#787EE9#787EE9

#787EE9 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.8% C 0.158 H 278.5°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#787EE9
RGBrgb(120, 126, 233)
HSLhsl(237, 72%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(48.5%, 45.9%, 0%, 8.6%)
CIE-LABlab(56.88, 25.97, -55.04)
CIE-LCHlch(56.88, 60.86, 295.26°)
OKLaboklab(63.83% 0.0234 -0.1563)
OKLCHoklch(63.83% 0.158 278.5)
XYZxyz(29.9100, 24.7963, 80.2851)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE9 #E9E378
analogous
#78B7E9 #787EE9 #AB78E9
triadic
#787EE9 #E9787E #7EE978
tetradic
#787EE9 #E978B7 #E9E378 #78E9AB
square
#787EE9 #E978B7 #E9E378 #78E9AB
split-complementary
#787EE9 #E9AB78 #B7E978
monochromatic
#2029C6 #434CE0 #787EE9 #ADB0F2 #E1E3FA

Accessibility & contrast

On white

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

On black

5.96
#787EE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE9#FFFFFF#000000##000000
##787EE91.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#518DED
Deuteranopia (green-blind)
#4784E7
Tritanopia (blue-blind)
#4D95A8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee9;
/* rgb */ color: rgb(120, 126, 233);
/* oklch */ color: oklch(63.8% 0.158 278.5);
Tailwind
colors: {
  custom: {
    50: '#a5a3f0',
    500: '#787ee9',
    950: '#000000',
  },
}
SCSS
$custom: #787ee9;
$custom-light: #a5a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee9",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 233
  },
  "hsl": {
    "h": 236.814,
    "s": 71.975,
    "l": 69.216
  },
  "oklch": {
    "l": 0.63828,
    "c": 0.15807,
    "h": 278.5
  },
  "luminance": 0.24798
}

Semantic roles & 50–950 ramp

primary
#787EE9
secondary
#EFEDCE
accent
#CA11D4
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EE9

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

Preview Lab → · Contrast checker → · Palette generator →

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