#787AF0#787AF0

#787AF0 is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.5% C 0.173 H 279.5°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#787AF0
RGBrgb(120, 122, 240)
HSLhsl(239, 80%, 71%)
HSVhsv(239, 50%, 94%)
CMYKcmyk(50%, 49.2%, 0%, 5.9%)
CIE-LABlab(56.29, 30.45, -59.87)
CIE-LCHlch(56.29, 67.17, 296.96°)
OKLaboklab(63.51% 0.0287 -0.1706)
OKLCHoklch(63.51% 0.173 279.5)
XYZxyz(30.4286, 24.2017, 85.4892)
Luminance0.2420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AF0 #F0EE78
analogous
#78B6F0 #787AF0 #B278F0
triadic
#787AF0 #F0787A #7AF078
tetradic
#787AF0 #F078B6 #F0EE78 #78F0B2
square
#787AF0 #F078B6 #F0EE78 #78F0B2
split-complementary
#787AF0 #F0B278 #B6F078
monochromatic
#181BD6 #4144EA #787AF0 #AFB0F6 #E3E4FC

Accessibility & contrast

On white

3.60
#787AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#787AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AF0
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AF0#FFFFFF#000000##000000
##787AF01.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#428CF4
Deuteranopia (green-blind)
#3782ED
Tritanopia (blue-blind)
#4894AA
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787af0;
/* rgb */ color: rgb(120, 122, 240);
/* oklch */ color: oklch(63.5% 0.173 279.5);
Tailwind
colors: {
  custom: {
    50: '#a6a0f6',
    500: '#787af0',
    950: '#000000',
  },
}
SCSS
$custom: #787af0;
$custom-light: #a6a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#787af0",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 240
  },
  "hsl": {
    "h": 239,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.63514,
    "c": 0.17296,
    "h": 279.5
  },
  "luminance": 0.24203
}

Semantic roles & 50–950 ramp

primary
#787AF0
secondary
#F2F2D2
accent
#D909DC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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