#787AEE#787AEE

#787AEE is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.4% C 0.170 H 279.6°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#787AEE
RGBrgb(120, 122, 238)
HSLhsl(239, 78%, 70%)
HSVhsv(239, 50%, 93%)
CMYKcmyk(49.6%, 48.7%, 0%, 6.7%)
CIE-LABlab(56.17, 29.85, -58.95)
CIE-LCHlch(56.17, 66.08, 296.86°)
OKLaboklab(63.39% 0.0285 -0.1679)
OKLCHoklch(63.39% 0.17 279.6)
XYZxyz(30.1331, 24.0835, 83.9331)
Luminance0.2409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AEE #EEEC78
analogous
#78B5EE #787AEE #B178EE
triadic
#787AEE #EE787A #7AEE78
tetradic
#787AEE #EE78B5 #EEEC78 #78EEB1
square
#787AEE #EE78B5 #EEEC78 #78EEB1
split-complementary
#787AEE #EEB178 #B5EE78
monochromatic
#1A1DD1 #4244E7 #787AEE #AEB0F5 #E4E4FC

Accessibility & contrast

On white

3.61
#787AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#787AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AEE
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AEE#FFFFFF#000000##000000
##787AEE1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#448BF2
Deuteranopia (green-blind)
#3982EB
Tritanopia (blue-blind)
#4A93A9
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787aee;
/* rgb */ color: rgb(120, 122, 238);
/* oklch */ color: oklch(63.4% 0.170 279.6);
Tailwind
colors: {
  custom: {
    50: '#a6a0f4',
    500: '#787aee',
    950: '#000000',
  },
}
SCSS
$custom: #787aee;
$custom-light: #a6a0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#787aee",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 238.983,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.63387,
    "c": 0.17026,
    "h": 279.6
  },
  "luminance": 0.24085
}

Semantic roles & 50–950 ramp

primary
#787AEE
secondary
#F1F1D1
accent
#D60CDA
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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