#787EE6#787EE6

#787EE6 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.6% C 0.154 H 278.6°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#787EE6
RGBrgb(120, 126, 230)
HSLhsl(237, 69%, 69%)
HSVhsv(237, 48%, 90%)
CMYKcmyk(47.8%, 45.2%, 0%, 9.8%)
CIE-LABlab(56.71, 25.07, -53.63)
CIE-LCHlch(56.71, 59.20, 295.06°)
OKLaboklab(63.65% 0.023 -0.1522)
OKLCHoklch(63.65% 0.154 278.6)
XYZxyz(29.4851, 24.6263, 78.0473)
Luminance0.2463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE6 #E6E078
analogous
#78B5E6 #787EE6 #A978E6
triadic
#787EE6 #E6787E #7EE678
tetradic
#787EE6 #E678B5 #E6E078 #78E6A9
square
#787EE6 #E678B5 #E6E078 #78E6A9
split-complementary
#787EE6 #E6A978 #B5E678
monochromatic
#242CC0 #444DDC #787EE6 #ACAFF0 #DFE1F9

Accessibility & contrast

On white

3.54
#787EE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#787EE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE6#FFFFFF#000000##000000
##787EE61.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#538CEA
Deuteranopia (green-blind)
#4A84E4
Tritanopia (blue-blind)
#4F94A7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee6;
/* rgb */ color: rgb(120, 126, 230);
/* oklch */ color: oklch(63.6% 0.154 278.6);
Tailwind
colors: {
  custom: {
    50: '#a5a3ee',
    500: '#787ee6',
    950: '#000000',
  },
}
SCSS
$custom: #787ee6;
$custom-light: #a5a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee6",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 230
  },
  "hsl": {
    "h": 236.727,
    "s": 68.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.63647,
    "c": 0.15394,
    "h": 278.6
  },
  "luminance": 0.24628
}

Semantic roles & 50–950 ramp

primary
#787EE6
secondary
#EDECCC
accent
#C615D1
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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