#787EF9#787EF9

#787EF9 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.180 H 278.0°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#787EF9
RGBrgb(120, 126, 249)
HSLhsl(237, 91%, 72%)
HSVhsv(237, 52%, 98%)
CMYKcmyk(51.8%, 49.4%, 0%, 2.4%)
CIE-LABlab(57.80, 30.81, -62.43)
CIE-LCHlch(57.80, 69.62, 296.27°)
OKLaboklab(64.83% 0.0251 -0.1781)
OKLCHoklch(64.83% 0.18 278)
XYZxyz(32.3001, 25.7523, 92.8728)
Luminance0.2575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF9 #F9F378
analogous
#78BFF9 #787EF9 #B278F9
triadic
#787EF9 #F9787E #7EF978
tetradic
#787EF9 #F978BF #F9F378 #78F9B2
square
#787EF9 #F978BF #F9F378 #78F9B2
split-complementary
#787EF9 #F9B278 #BFF978
monochromatic
#0A15EC #3D46F6 #787EF9 #B3B6FC #E2E3FE

Accessibility & contrast

On white

3.41
#787EF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#787EF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF9
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF9#FFFFFF#000000##000000
##787EF91.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4290FD
Deuteranopia (green-blind)
#3386F6
Tritanopia (blue-blind)
#3F99B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ef9;
/* rgb */ color: rgb(120, 126, 249);
/* oklch */ color: oklch(64.8% 0.180 278.0);
Tailwind
colors: {
  custom: {
    50: '#a7a3fc',
    500: '#787ef9',
    950: '#000000',
  },
}
SCSS
$custom: #787ef9;
$custom-light: #a7a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef9",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 249
  },
  "hsl": {
    "h": 237.209,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.64825,
    "c": 0.17982,
    "h": 278
  },
  "luminance": 0.25754
}

Semantic roles & 50–950 ramp

primary
#787EF9
secondary
#F6F4D5
accent
#DB00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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