#787EFE#787EFE

#787EFE is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.1% C 0.186 H 277.9°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#787EFE
RGBrgb(120, 126, 254)
HSLhsl(237, 99%, 73%)
HSVhsv(237, 53%, 100%)
CMYKcmyk(52.8%, 50.4%, 0%, 0.4%)
CIE-LABlab(58.10, 32.34, -64.70)
CIE-LCHlch(58.10, 72.33, 296.55°)
OKLaboklab(65.15% 0.0255 -0.1847)
OKLCHoklch(65.15% 0.186 277.9)
XYZxyz(33.0903, 26.0684, 97.0348)
Luminance0.2607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EFE #FEF878
analogous
#78C1FE #787EFE #B578FE
triadic
#787EFE #FE787E #7EFE78
tetradic
#787EFE #FE78C1 #FEF878 #78FEB5
square
#787EFE #FE78C1 #FEF878 #78FEB5
split-complementary
#787EFE #FEB578 #C1FE78
monochromatic
#020DFA #3B44FE #787EFE #B5B8FE #E1E2FF

Accessibility & contrast

On white

3.38
#787EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#787EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EFE
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EFE#FFFFFF#000000##000000
##787EFE1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C91FF
Deuteranopia (green-blind)
#2986FB
Tritanopia (blue-blind)
#3A9BB2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #787efe;
/* rgb */ color: rgb(120, 126, 254);
/* oklch */ color: oklch(65.1% 0.186 277.9);
Tailwind
colors: {
  custom: {
    50: '#a8a3ff',
    500: '#787efe',
    950: '#000000',
  },
}
SCSS
$custom: #787efe;
$custom-light: #a8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787efe",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 237.313,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.65148,
    "c": 0.18649,
    "h": 277.9
  },
  "luminance": 0.26071
}

Semantic roles & 50–950 ramp

primary
#787EFE
secondary
#F7F6D4
accent
#DB00E6
background
#FAFAFF
surface
#F5F3FF
border
#CFCDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #787EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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