#787EEB#787EEB

#787EEB is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.161 H 278.4°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#787EEB
RGBrgb(120, 126, 235)
HSLhsl(237, 74%, 70%)
HSVhsv(237, 49%, 92%)
CMYKcmyk(48.9%, 46.4%, 0%, 7.8%)
CIE-LABlab(56.99, 26.57, -55.97)
CIE-LCHlch(56.99, 61.96, 295.39°)
OKLaboklab(63.95% 0.0236 -0.1591)
OKLCHoklch(63.95% 0.161 278.4)
XYZxyz(30.1973, 24.9112, 81.7983)
Luminance0.2491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EEB #EBE578
analogous
#78B7EB #787EEB #AC78EB
triadic
#787EEB #EB787E #7EEB78
tetradic
#787EEB #EB78B7 #EBE578 #78EBAC
square
#787EEB #EB78B7 #EBE578 #78EBAC
split-complementary
#787EEB #EBAC78 #B7EB78
monochromatic
#1E27CB #434BE3 #787EEB #ADB1F3 #E3E4FB

Accessibility & contrast

On white

3.51
#787EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#787EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EEB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EEB#FFFFFF#000000##000000
##787EEB1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8DEF
Deuteranopia (green-blind)
#4584E9
Tritanopia (blue-blind)
#4B95A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787eeb;
/* rgb */ color: rgb(120, 126, 235);
/* oklch */ color: oklch(63.9% 0.161 278.4);
Tailwind
colors: {
  custom: {
    50: '#a5a3f2',
    500: '#787eeb',
    950: '#000000',
  },
}
SCSS
$custom: #787eeb;
$custom-light: #a5a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#787eeb",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 235
  },
  "hsl": {
    "h": 236.87,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63949,
    "c": 0.16082,
    "h": 278.4
  },
  "luminance": 0.24913
}

Semantic roles & 50–950 ramp

primary
#787EEB
secondary
#F0EECF
accent
#CC0FD6
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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