#787EF0#787EF0

#787EF0 is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.3% C 0.168 H 278.3°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#787EF0
RGBrgb(120, 126, 240)
HSLhsl(237, 80%, 71%)
HSVhsv(237, 50%, 94%)
CMYKcmyk(50%, 47.5%, 0%, 5.9%)
CIE-LABlab(57.27, 28.08, -58.29)
CIE-LCHlch(57.27, 64.70, 295.72°)
OKLaboklab(64.26% 0.0242 -0.1659)
OKLCHoklch(64.26% 0.168 278.3)
XYZxyz(30.9299, 25.2042, 85.6563)
Luminance0.2521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF0 #F0EA78
analogous
#78BAF0 #787EF0 #AE78F0
triadic
#787EF0 #F0787E #7EF078
tetradic
#787EF0 #F078BA #F0EA78 #78F0AE
square
#787EF0 #F078BA #F0EA78 #78F0AE
split-complementary
#787EF0 #F0AE78 #BAF078
monochromatic
#1821D6 #4149EA #787EF0 #AFB3F6 #E3E5FC

Accessibility & contrast

On white

3.48
#787EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#787EF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF0
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF0#FFFFFF#000000##000000
##787EF01.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF4
Deuteranopia (green-blind)
#3F85EE
Tritanopia (blue-blind)
#4897AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787ef0;
/* rgb */ color: rgb(120, 126, 240);
/* oklch */ color: oklch(64.3% 0.168 278.3);
Tailwind
colors: {
  custom: {
    50: '#a6a3f5',
    500: '#787ef0',
    950: '#000000',
  },
}
SCSS
$custom: #787ef0;
$custom-light: #a6a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef0",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 240
  },
  "hsl": {
    "h": 237,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.64257,
    "c": 0.16765,
    "h": 278.3
  },
  "luminance": 0.25206
}

Semantic roles & 50–950 ramp

primary
#787EF0
secondary
#F2F1D2
accent
#D209DC
background
#FAFAFF
surface
#F4F3FE
border
#CECDD6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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