#787EFA#787EFA

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

Color values

HEX#787EFA
RGBrgb(120, 126, 250)
HSLhsl(237, 93%, 73%)
HSVhsv(237, 52%, 98%)
CMYKcmyk(52%, 49.6%, 0%, 2%)
CIE-LABlab(57.86, 31.12, -62.89)
CIE-LCHlch(57.86, 70.16, 296.33°)
OKLaboklab(64.89% 0.0252 -0.1794)
OKLCHoklch(64.89% 0.181 278)
XYZxyz(32.4565, 25.8149, 93.6965)
Luminance0.2582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EFA #FAF478
analogous
#78BFFA #787EFA #B378FA
triadic
#787EFA #FA787E #7EFA78
tetradic
#787EFA #FA78BF #FAF478 #78FAB3
square
#787EFA #FA78BF #FAF478 #78FAB3
split-complementary
#787EFA #FAB378 #BFFA78
monochromatic
#0913EF #3D46F8 #787EFA #B3B6FC #E1E3FE

Accessibility & contrast

On white

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

On black

6.16
#787EFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EFA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EFA#FFFFFF#000000##000000
##787EFA1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4190FE
Deuteranopia (green-blind)
#3186F7
Tritanopia (blue-blind)
#3E99B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787efa;
/* rgb */ color: rgb(120, 126, 250);
/* oklch */ color: oklch(64.9% 0.181 278.0);
Tailwind
colors: {
  custom: {
    50: '#a7a3fd',
    500: '#787efa',
    950: '#000000',
  },
}
SCSS
$custom: #787efa;
$custom-light: #a7a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787efa",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 237.231,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64889,
    "c": 0.18116,
    "h": 278
  },
  "luminance": 0.25817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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