#787EF7#787EF7

#787EF7 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.7% C 0.177 H 278.1°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#787EF7
RGBrgb(120, 126, 247)
HSLhsl(237, 89%, 72%)
HSVhsv(237, 51%, 97%)
CMYKcmyk(51.4%, 49%, 0%, 3.1%)
CIE-LABlab(57.68, 30.20, -61.52)
CIE-LCHlch(57.68, 68.53, 296.15°)
OKLaboklab(64.7% 0.0249 -0.1754)
OKLCHoklch(64.7% 0.177 278.1)
XYZxyz(31.9898, 25.6282, 91.2387)
Luminance0.2563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EF7 #F7F178
analogous
#78BEF7 #787EF7 #B178F7
triadic
#787EF7 #F7787E #7EF778
tetradic
#787EF7 #F778BE #F7F178 #78F7B1
square
#787EF7 #F778BE #F7F178 #78F7B1
split-complementary
#787EF7 #F7B178 #BEF778
monochromatic
#0E18E7 #3E47F4 #787EF7 #B2B5FA #E2E3FD

Accessibility & contrast

On white

3.43
#787EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#787EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EF7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EF7#FFFFFF#000000##000000
##787EF71.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4490FB
Deuteranopia (green-blind)
#3686F4
Tritanopia (blue-blind)
#4199AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ef7;
/* rgb */ color: rgb(120, 126, 247);
/* oklch */ color: oklch(64.7% 0.177 278.1);
Tailwind
colors: {
  custom: {
    50: '#a7a3fa',
    500: '#787ef7',
    950: '#000000',
  },
}
SCSS
$custom: #787ef7;
$custom-light: #a7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787ef7",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 237.165,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64697,
    "c": 0.17713,
    "h": 278.1
  },
  "luminance": 0.2563
}

Semantic roles & 50–950 ramp

primary
#787EF7
secondary
#F5F4D5
accent
#DB00E5
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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