#787CF3#787CF3

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

Color values

HEX#787CF3
RGBrgb(120, 124, 243)
HSLhsl(238, 84%, 71%)
HSVhsv(238, 51%, 95%)
CMYKcmyk(50.6%, 49%, 0%, 4.7%)
CIE-LABlab(56.96, 30.17, -60.47)
CIE-LCHlch(56.96, 67.58, 296.52°)
OKLaboklab(64.07% 0.0267 -0.1723)
OKLCHoklch(64.07% 0.174 278.8)
XYZxyz(31.1260, 24.8776, 87.9384)
Luminance0.2488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF3 #F3EF78
analogous
#78B9F3 #787CF3 #B178F3
triadic
#787CF3 #F3787C #7CF378
tetradic
#787CF3 #F378B9 #F3EF78 #78F3B1
square
#787CF3 #F378B9 #F3EF78 #78F3B1
split-complementary
#787CF3 #F3B178 #B9F378
monochromatic
#141ADD #4045EE #787CF3 #B0B3F8 #E3E4FD

Accessibility & contrast

On white

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

On black

5.98
#787CF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF3
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF3#FFFFFF#000000##000000
##787CF31.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#448EF7
Deuteranopia (green-blind)
#3784F0
Tritanopia (blue-blind)
#4596AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787cf3;
/* rgb */ color: rgb(120, 124, 243);
/* oklch */ color: oklch(64.1% 0.174 278.8);
Tailwind
colors: {
  custom: {
    50: '#a7a1f8',
    500: '#787cf3',
    950: '#000000',
  },
}
SCSS
$custom: #787cf3;
$custom-light: #a7a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf3",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 243
  },
  "hsl": {
    "h": 238.049,
    "s": 83.673,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64074,
    "c": 0.17436,
    "h": 278.8
  },
  "luminance": 0.24879
}

Semantic roles & 50–950 ramp

primary
#787CF3
secondary
#F4F3D3
accent
#D905E0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF3

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

Preview Lab → · Contrast checker → · Palette generator →

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