#787EF5#787EF5

#787EF5 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.6% C 0.174 H 278.1°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#787EF5
RGBrgb(120, 126, 245)
HSLhsl(237, 86%, 72%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(51%, 48.6%, 0%, 3.9%)
CIE-LABlab(57.56, 29.59, -60.60)
CIE-LCHlch(57.56, 67.44, 296.03°)
OKLaboklab(64.57% 0.0247 -0.1727)
OKLCHoklch(64.57% 0.174 278.1)
XYZxyz(31.6829, 25.5054, 89.6221)
Luminance0.2551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF5 #F5EF78
analogous
#78BDF5 #787EF5 #B178F5
triadic
#787EF5 #F5787E #7EF578
tetradic
#787EF5 #F578BD #F5EF78 #78F5B1
square
#787EF5 #F578BD #F5EF78 #78F5B1
split-complementary
#787EF5 #F5B178 #BDF578
monochromatic
#111BE2 #3F48F1 #787EF5 #B1B4F9 #E3E4FD

Accessibility & contrast

On white

3.44
#787EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#787EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF5#FFFFFF#000000##000000
##787EF51.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#468FF9
Deuteranopia (green-blind)
#3985F2
Tritanopia (blue-blind)
#4398AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787ef5;
/* rgb */ color: rgb(120, 126, 245);
/* oklch */ color: oklch(64.6% 0.174 278.1);
Tailwind
colors: {
  custom: {
    50: '#a7a3f9',
    500: '#787ef5',
    950: '#000000',
  },
}
SCSS
$custom: #787ef5;
$custom-light: #a7a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef5",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 237.12,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.6457,
    "c": 0.17444,
    "h": 278.1
  },
  "luminance": 0.25507
}

Semantic roles & 50–950 ramp

primary
#787EF5
secondary
#F4F3D4
accent
#D803E3
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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