#787AFE#787AFE

#787AFE is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.4% C 0.192 H 278.9°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#787AFE
RGBrgb(120, 122, 254)
HSLhsl(239, 99%, 73%)
HSVhsv(239, 53%, 100%)
CMYKcmyk(52.8%, 52%, 0%, 0.4%)
CIE-LABlab(57.14, 34.70, -66.25)
CIE-LCHlch(57.14, 74.79, 297.64°)
OKLaboklab(64.43% 0.0297 -0.1893)
OKLCHoklch(64.43% 0.192 278.9)
XYZxyz(32.5891, 25.0659, 96.8677)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AFE #FEFC78
analogous
#78BDFE #787AFE #B978FE
triadic
#787AFE #FE787A #7AFE78
tetradic
#787AFE #FE78BD #FEFC78 #78FEB9
square
#787AFE #FE78BD #FEFC78 #78FEB9
split-complementary
#787AFE #FEB978 #BDFE78
monochromatic
#0206FA #3B3EFE #787AFE #B5B6FE #E1E1FF

Accessibility & contrast

On white

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

On black

6.01
#787AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AFE
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AFE#FFFFFF#000000##000000
##787AFE1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#318FFF
Deuteranopia (green-blind)
#1A84FB
Tritanopia (blue-blind)
#3B98B0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787afe;
/* rgb */ color: rgb(120, 122, 254);
/* oklch */ color: oklch(64.4% 0.192 278.9);
Tailwind
colors: {
  custom: {
    50: '#a8a0ff',
    500: '#787afe',
    950: '#000000',
  },
}
SCSS
$custom: #787afe;
$custom-light: #a8a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787afe",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 239.104,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.64426,
    "c": 0.19164,
    "h": 278.9
  },
  "luminance": 0.25068
}

Semantic roles & 50–950 ramp

primary
#787AFE
secondary
#F7F7D4
accent
#E200E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #787AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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