#787AE2#787AE2

#787AE2 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.6% C 0.154 H 280.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#787AE2
RGBrgb(120, 122, 226)
HSLhsl(239, 65%, 68%)
HSVhsv(239, 47%, 89%)
CMYKcmyk(46.9%, 46%, 0%, 11.4%)
CIE-LABlab(55.48, 26.26, -53.35)
CIE-LCHlch(55.48, 59.46, 296.21°)
OKLaboklab(62.65% 0.0271 -0.1514)
OKLCHoklch(62.65% 0.154 280.2)
XYZxyz(28.4286, 23.4017, 74.9558)
Luminance0.2340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AE2 #E2E078
analogous
#78AFE2 #787AE2 #AB78E2
triadic
#787AE2 #E2787A #7AE278
tetradic
#787AE2 #E278AF #E2E078 #78E2AB
square
#787AE2 #E278AF #E2E078 #78E2AB
split-complementary
#787AE2 #E2AB78 #AFE278
monochromatic
#282AB8 #4648D7 #787AE2 #AAACED #DDDDF8

Accessibility & contrast

On white

3.70
#787AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#787AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AE2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AE2#FFFFFF#000000##000000
##787AE21.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F89E6
Deuteranopia (green-blind)
#4781E0
Tritanopia (blue-blind)
#5290A3
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787ae2;
/* rgb */ color: rgb(120, 122, 226);
/* oklch */ color: oklch(62.6% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#a5a0ec',
    500: '#787ae2',
    950: '#000000',
  },
}
SCSS
$custom: #787ae2;
$custom-light: #a5a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#787ae2",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 226
  },
  "hsl": {
    "h": 238.868,
    "s": 64.634,
    "l": 67.843
  },
  "oklch": {
    "l": 0.62646,
    "c": 0.15383,
    "h": 280.2
  },
  "luminance": 0.23403
}

Semantic roles & 50–950 ramp

primary
#787AE2
secondary
#EBEBCB
accent
#C919CC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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