#787EEE#787EEE

#787EEE is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.1% C 0.165 H 278.4°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#787EEE
RGBrgb(120, 126, 238)
HSLhsl(237, 78%, 70%)
HSVhsv(237, 50%, 93%)
CMYKcmyk(49.6%, 47.1%, 0%, 6.7%)
CIE-LABlab(57.16, 27.47, -57.37)
CIE-LCHlch(57.16, 63.61, 295.59°)
OKLaboklab(64.13% 0.024 -0.1632)
OKLCHoklch(64.13% 0.165 278.4)
XYZxyz(30.6344, 25.0861, 84.1002)
Luminance0.2509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EEE #EEE878
analogous
#78B9EE #787EEE #AD78EE
triadic
#787EEE #EE787E #7EEE78
tetradic
#787EEE #EE78B9 #EEE878 #78EEAD
square
#787EEE #EE78B9 #EEE878 #78EEAD
split-complementary
#787EEE #EEAD78 #B9EE78
monochromatic
#1A24D1 #424AE7 #787EEE #AEB2F5 #E4E5FC

Accessibility & contrast

On white

3.49
#787EEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#787EEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EEE
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EEE#FFFFFF#000000##000000
##787EEE1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF2
Deuteranopia (green-blind)
#4185EC
Tritanopia (blue-blind)
#4996AB
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787eee;
/* rgb */ color: rgb(120, 126, 238);
/* oklch */ color: oklch(64.1% 0.165 278.4);
Tailwind
colors: {
  custom: {
    50: '#a6a3f4',
    500: '#787eee',
    950: '#000000',
  },
}
SCSS
$custom: #787eee;
$custom-light: #a6a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#787eee",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 236.949,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.64133,
    "c": 0.16493,
    "h": 278.4
  },
  "luminance": 0.25088
}

Semantic roles & 50–950 ramp

primary
#787EEE
secondary
#F1F0D1
accent
#CF0CDA
background
#FAFAFF
surface
#F4F3FE
border
#CECDD6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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