#787EFB#787EFB

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

Color values

HEX#787EFB
RGBrgb(120, 126, 251)
HSLhsl(237, 94%, 73%)
HSVhsv(237, 52%, 98%)
CMYKcmyk(52.2%, 49.8%, 0%, 1.6%)
CIE-LABlab(57.92, 31.42, -63.34)
CIE-LCHlch(57.92, 70.71, 296.38°)
OKLaboklab(64.95% 0.0253 -0.1807)
OKLCHoklch(64.95% 0.183 278)
XYZxyz(32.6137, 25.8778, 94.5244)
Luminance0.2588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EFB #FBF578
analogous
#78BFFB #787EFB #B378FB
triadic
#787EFB #FB787E #7EFB78
tetradic
#787EFB #FB78BF #FBF578 #78FBB3
square
#787EFB #FB78BF #FBF578 #78FBB3
split-complementary
#787EFB #FBB378 #BFFB78
monochromatic
#0712F1 #3D45F9 #787EFB #B3B7FD #E1E3FE

Accessibility & contrast

On white

3.40
#787EFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#787EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EFB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EFB#FFFFFF#000000##000000
##787EFB1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4091FF
Deuteranopia (green-blind)
#2F86F8
Tritanopia (blue-blind)
#3D9AB1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787efb;
/* rgb */ color: rgb(120, 126, 251);
/* oklch */ color: oklch(65.0% 0.182 278.0);
Tailwind
colors: {
  custom: {
    50: '#a7a3fd',
    500: '#787efb',
    950: '#000000',
  },
}
SCSS
$custom: #787efb;
$custom-light: #a7a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787efb",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 237.252,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64954,
    "c": 0.1825,
    "h": 278
  },
  "luminance": 0.2588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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