#787EF4#787EF4

#787EF4 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.5% C 0.173 H 278.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#787EF4
RGBrgb(120, 126, 244)
HSLhsl(237, 85%, 71%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(50.8%, 48.4%, 0%, 4.3%)
CIE-LABlab(57.51, 29.29, -60.14)
CIE-LCHlch(57.51, 66.89, 295.97°)
OKLaboklab(64.51% 0.0246 -0.1713)
OKLCHoklch(64.51% 0.173 278.2)
XYZxyz(31.5306, 25.4445, 88.8202)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF4 #F4EE78
analogous
#78BCF4 #787EF4 #B078F4
triadic
#787EF4 #F4787E #7EF478
tetradic
#787EF4 #F478BC #F4EE78 #78F4B0
square
#787EF4 #F478BC #F4EE78 #78F4B0
split-complementary
#787EF4 #F4B078 #BCF478
monochromatic
#121CDF #3F48EF #787EF4 #B1B4F9 #E3E4FD

Accessibility & contrast

On white

3.45
#787EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#787EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF4
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF4#FFFFFF#000000##000000
##787EF41.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#478FF8
Deuteranopia (green-blind)
#3A85F1
Tritanopia (blue-blind)
#4498AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787ef4;
/* rgb */ color: rgb(120, 126, 244);
/* oklch */ color: oklch(64.5% 0.173 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a3f8',
    500: '#787ef4',
    950: '#000000',
  },
}
SCSS
$custom: #787ef4;
$custom-light: #a7a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef4",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 237.097,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64507,
    "c": 0.17309,
    "h": 278.2
  },
  "luminance": 0.25446
}

Semantic roles & 50–950 ramp

primary
#787EF4
secondary
#F4F2D4
accent
#D704E1
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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