#787AF8#787AF8

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

Color values

HEX#787AF8
RGBrgb(120, 122, 248)
HSLhsl(239, 90%, 72%)
HSVhsv(239, 52%, 97%)
CMYKcmyk(51.6%, 50.8%, 0%, 2.7%)
CIE-LABlab(56.77, 32.88, -63.53)
CIE-LCHlch(56.77, 71.54, 297.36°)
OKLaboklab(64.03% 0.0293 -0.1813)
OKLCHoklch(64.03% 0.184 279.2)
XYZxyz(31.6433, 24.6875, 91.8865)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF8 #F8F678
analogous
#78BAF8 #787AF8 #B678F8
triadic
#787AF8 #F8787A #7AF878
tetradic
#787AF8 #F878BA #F8F678 #78F8B6
square
#787AF8 #F878BA #F8F678 #78F8B6
split-complementary
#787AF8 #F8B678 #BAF878
monochromatic
#0C10E9 #3E41F5 #787AF8 #B2B3FB #E2E2FD

Accessibility & contrast

On white

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

On black

5.94
#787AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF8#FFFFFF#000000##000000
##787AF81.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#398DFC
Deuteranopia (green-blind)
#2983F5
Tritanopia (blue-blind)
#4196AE
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787af8;
/* rgb */ color: rgb(120, 122, 248);
/* oklch */ color: oklch(64.0% 0.184 279.2);
Tailwind
colors: {
  custom: {
    50: '#a7a0fb',
    500: '#787af8',
    950: '#000000',
  },
}
SCSS
$custom: #787af8;
$custom-light: #a7a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#787af8",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 239.063,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.6403,
    "c": 0.18369,
    "h": 279.2
  },
  "luminance": 0.24689
}

Semantic roles & 50–950 ramp

primary
#787AF8
secondary
#F6F5D5
accent
#E200E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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