#787AF3#787AF3

#787AF3 is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.7% C 0.177 H 279.4°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#787AF3
RGBrgb(120, 122, 243)
HSLhsl(239, 84%, 71%)
HSVhsv(239, 51%, 95%)
CMYKcmyk(50.6%, 49.8%, 0%, 4.7%)
CIE-LABlab(56.47, 31.36, -61.25)
CIE-LCHlch(56.47, 68.81, 297.11°)
OKLaboklab(63.71% 0.0289 -0.1746)
OKLCHoklch(63.71% 0.177 279.4)
XYZxyz(30.8779, 24.3814, 87.8557)
Luminance0.2438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF3 #F3F178
analogous
#78B7F3 #787AF3 #B378F3
triadic
#787AF3 #F3787A #7AF378
tetradic
#787AF3 #F378B7 #F3F178 #78F3B3
square
#787AF3 #F378B7 #F3F178 #78F3B3
split-complementary
#787AF3 #F3B378 #B7F378
monochromatic
#1417DD #4043EE #787AF3 #B0B1F8 #E3E3FD

Accessibility & contrast

On white

3.57
#787AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#787AF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF3
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF3#FFFFFF#000000##000000
##787AF31.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8CF7
Deuteranopia (green-blind)
#3283F0
Tritanopia (blue-blind)
#4695AB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787af3;
/* rgb */ color: rgb(120, 122, 243);
/* oklch */ color: oklch(63.7% 0.177 279.4);
Tailwind
colors: {
  custom: {
    50: '#a7a0f8',
    500: '#787af3',
    950: '#000000',
  },
}
SCSS
$custom: #787af3;
$custom-light: #a7a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787af3",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 243
  },
  "hsl": {
    "h": 239.024,
    "s": 83.673,
    "l": 71.176
  },
  "oklch": {
    "l": 0.63706,
    "c": 0.177,
    "h": 279.4
  },
  "luminance": 0.24383
}

Semantic roles & 50–950 ramp

primary
#787AF3
secondary
#F4F3D3
accent
#DD05E0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF3

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

Preview Lab → · Contrast checker → · Palette generator →

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