#787EE7#787EE7

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

Color values

HEX#787EE7
RGBrgb(120, 126, 231)
HSLhsl(237, 70%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(48.1%, 45.5%, 0%, 9.4%)
CIE-LABlab(56.76, 25.37, -54.10)
CIE-LCHlch(56.76, 59.75, 295.12°)
OKLaboklab(63.71% 0.0231 -0.1536)
OKLCHoklch(63.71% 0.155 278.5)
XYZxyz(29.6260, 24.6827, 78.7890)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE7 #E7E178
analogous
#78B6E7 #787EE7 #AA78E7
triadic
#787EE7 #E7787E #7EE778
tetradic
#787EE7 #E778B6 #E7E178 #78E7AA
square
#787EE7 #E778B6 #E7E178 #78E7AA
split-complementary
#787EE7 #E7AA78 #B6E778
monochromatic
#232BC2 #444CDE #787EE7 #ACB0F0 #E0E1F9

Accessibility & contrast

On white

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

On black

5.94
#787EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE7#FFFFFF#000000##000000
##787EE71.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#528DEB
Deuteranopia (green-blind)
#4984E5
Tritanopia (blue-blind)
#4E94A7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee7;
/* rgb */ color: rgb(120, 126, 231);
/* oklch */ color: oklch(63.7% 0.155 278.5);
Tailwind
colors: {
  custom: {
    50: '#a5a3ef',
    500: '#787ee7',
    950: '#000000',
  },
}
SCSS
$custom: #787ee7;
$custom-light: #a5a3ef;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee7",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 231
  },
  "hsl": {
    "h": 236.757,
    "s": 69.811,
    "l": 68.824
  },
  "oklch": {
    "l": 0.63707,
    "c": 0.15532,
    "h": 278.5
  },
  "luminance": 0.24684
}

Semantic roles & 50–950 ramp

primary
#787EE7
secondary
#EEECCD
accent
#C814D2
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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