#787EFC#787EFC

#787EFC is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.0% C 0.184 H 277.9°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#787EFC
RGBrgb(120, 126, 252)
HSLhsl(237, 96%, 73%)
HSVhsv(237, 52%, 99%)
CMYKcmyk(52.4%, 50%, 0%, 1.2%)
CIE-LABlab(57.98, 31.73, -63.80)
CIE-LCHlch(57.98, 71.25, 296.44°)
OKLaboklab(65.02% 0.0253 -0.1821)
OKLCHoklch(65.02% 0.184 277.9)
XYZxyz(32.7717, 25.9410, 95.3568)
Luminance0.2594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EFC #FCF678
analogous
#78C0FC #787EFC #B478FC
triadic
#787EFC #FC787E #7EFC78
tetradic
#787EFC #FC78C0 #FCF678 #78FCB4
square
#787EFC #FC78C0 #FCF678 #78FCB4
split-complementary
#787EFC #FCB478 #C0FC78
monochromatic
#0510F4 #3C45FB #787EFC #B4B7FD #E1E2FE

Accessibility & contrast

On white

3.39
#787EFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#787EFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EFC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EFC#FFFFFF#000000##000000
##787EFC1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E91FF
Deuteranopia (green-blind)
#2D86F9
Tritanopia (blue-blind)
#3C9AB1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787efc;
/* rgb */ color: rgb(120, 126, 252);
/* oklch */ color: oklch(65.0% 0.184 277.9);
Tailwind
colors: {
  custom: {
    50: '#a8a3fe',
    500: '#787efc',
    950: '#000000',
  },
}
SCSS
$custom: #787efc;
$custom-light: #a8a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#787efc",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 237.273,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65018,
    "c": 0.18383,
    "h": 277.9
  },
  "luminance": 0.25943
}

Semantic roles & 50–950 ramp

primary
#787EFC
secondary
#F7F5D4
accent
#DB00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #787EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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