#787EE8#787EE8

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

Color values

HEX#787EE8
RGBrgb(120, 126, 232)
HSLhsl(237, 71%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(48.3%, 45.7%, 0%, 9%)
CIE-LABlab(56.82, 25.67, -54.57)
CIE-LCHlch(56.82, 60.30, 295.19°)
OKLaboklab(63.77% 0.0232 -0.155)
OKLCHoklch(63.77% 0.157 278.5)
XYZxyz(29.7676, 24.7393, 79.5349)
Luminance0.2474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE8 #E8E278
analogous
#78B6E8 #787EE8 #AA78E8
triadic
#787EE8 #E8787E #7EE878
tetradic
#787EE8 #E878B6 #E8E278 #78E8AA
square
#787EE8 #E878B6 #E8E278 #78E8AA
split-complementary
#787EE8 #E8AA78 #B6E878
monochromatic
#212AC4 #444CDF #787EE8 #ACB0F1 #E1E2FA

Accessibility & contrast

On white

3.53
#787EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#787EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE8#FFFFFF#000000##000000
##787EE81.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#518DEC
Deuteranopia (green-blind)
#4884E6
Tritanopia (blue-blind)
#4E95A8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee8;
/* rgb */ color: rgb(120, 126, 232);
/* oklch */ color: oklch(63.8% 0.157 278.5);
Tailwind
colors: {
  custom: {
    50: '#a5a3f0',
    500: '#787ee8',
    950: '#000000',
  },
}
SCSS
$custom: #787ee8;
$custom-light: #a5a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee8",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 232
  },
  "hsl": {
    "h": 236.786,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63767,
    "c": 0.1567,
    "h": 278.5
  },
  "luminance": 0.24741
}

Semantic roles & 50–950 ramp

primary
#787EE8
secondary
#EEEDCD
accent
#C913D3
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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