#787AF7#787AF7

#787AF7 is a light, vivid blue. Relative luminance 0.246; OKLCH L 64.0% C 0.182 H 279.2°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#787AF7
RGBrgb(120, 122, 247)
HSLhsl(239, 89%, 72%)
HSVhsv(239, 51%, 97%)
CMYKcmyk(51.4%, 50.6%, 0%, 3.1%)
CIE-LABlab(56.71, 32.57, -63.08)
CIE-LCHlch(56.71, 70.99, 297.31°)
OKLaboklab(63.97% 0.0292 -0.18)
OKLCHoklch(63.97% 0.182 279.2)
XYZxyz(31.4885, 24.6257, 91.0716)
Luminance0.2463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF7 #F7F578
analogous
#78BAF7 #787AF7 #B678F7
triadic
#787AF7 #F7787A #7AF778
tetradic
#787AF7 #F778BA #F7F578 #78F7B6
square
#787AF7 #F778BA #F7F578 #78F7B6
split-complementary
#787AF7 #F7B678 #BAF778
monochromatic
#0E11E7 #3E41F4 #787AF7 #B2B3FA #E2E3FD

Accessibility & contrast

On white

3.54
#787AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#787AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF7#FFFFFF#000000##000000
##787AF71.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFB
Deuteranopia (green-blind)
#2B83F4
Tritanopia (blue-blind)
#4296AD
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787af7;
/* rgb */ color: rgb(120, 122, 247);
/* oklch */ color: oklch(64.0% 0.182 279.2);
Tailwind
colors: {
  custom: {
    50: '#a7a0fa',
    500: '#787af7',
    950: '#000000',
  },
}
SCSS
$custom: #787af7;
$custom-light: #a7a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787af7",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 239.055,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.63965,
    "c": 0.18236,
    "h": 279.2
  },
  "luminance": 0.24628
}

Semantic roles & 50–950 ramp

primary
#787AF7
secondary
#F5F5D5
accent
#E200E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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