#787CF4#787CF4

#787CF4 is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.1% C 0.176 H 278.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#787CF4
RGBrgb(120, 124, 244)
HSLhsl(238, 85%, 71%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(50.8%, 49.2%, 0%, 4.3%)
CIE-LABlab(57.02, 30.48, -60.93)
CIE-LCHlch(57.02, 68.12, 296.58°)
OKLaboklab(64.14% 0.0268 -0.1736)
OKLCHoklch(64.14% 0.176 278.8)
XYZxyz(31.2774, 24.9382, 88.7358)
Luminance0.2494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF4 #F4F078
analogous
#78BAF4 #787CF4 #B278F4
triadic
#787CF4 #F4787C #7CF478
tetradic
#787CF4 #F478BA #F4F078 #78F4B2
square
#787CF4 #F478BA #F4F078 #78F4B2
split-complementary
#787CF4 #F4B278 #BAF478
monochromatic
#1219DF #3F45EF #787CF4 #B1B3F9 #E3E4FD

Accessibility & contrast

On white

3.51
#787CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#787CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF4
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF4#FFFFFF#000000##000000
##787CF41.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#438EF8
Deuteranopia (green-blind)
#3584F1
Tritanopia (blue-blind)
#4496AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787cf4;
/* rgb */ color: rgb(120, 124, 244);
/* oklch */ color: oklch(64.1% 0.176 278.8);
Tailwind
colors: {
  custom: {
    50: '#a7a1f8',
    500: '#787cf4',
    950: '#000000',
  },
}
SCSS
$custom: #787cf4;
$custom-light: #a7a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf4",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 244
  },
  "hsl": {
    "h": 238.065,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64137,
    "c": 0.17571,
    "h": 278.8
  },
  "luminance": 0.2494
}

Semantic roles & 50–950 ramp

primary
#787CF4
secondary
#F4F3D4
accent
#DA04E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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