#787CF9#787CF9

#787CF9 is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.5% C 0.182 H 278.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#787CF9
RGBrgb(120, 124, 249)
HSLhsl(238, 91%, 72%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(51.8%, 50.2%, 0%, 2.4%)
CIE-LABlab(57.31, 32.00, -63.21)
CIE-LCHlch(57.31, 70.85, 296.85°)
OKLaboklab(64.46% 0.0272 -0.1804)
OKLCHoklch(64.46% 0.182 278.6)
XYZxyz(32.0469, 25.2460, 92.7884)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CF9 #F9F578
analogous
#78BCF9 #787CF9 #B578F9
triadic
#787CF9 #F9787C #7CF978
tetradic
#787CF9 #F978BC #F9F578 #78F9B5
square
#787CF9 #F978BC #F9F578 #78F9B5
split-complementary
#787CF9 #F9B578 #BCF978
monochromatic
#0A11EC #3D43F6 #787CF9 #B3B5FC #E2E3FE

Accessibility & contrast

On white

3.47
#787CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#787CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CF9
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CF9#FFFFFF#000000##000000
##787CF91.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8FFD
Deuteranopia (green-blind)
#2D85F6
Tritanopia (blue-blind)
#4098AF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787cf9;
/* rgb */ color: rgb(120, 124, 249);
/* oklch */ color: oklch(64.5% 0.182 278.6);
Tailwind
colors: {
  custom: {
    50: '#a7a1fc',
    500: '#787cf9',
    950: '#000000',
  },
}
SCSS
$custom: #787cf9;
$custom-light: #a7a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#787cf9",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 249
  },
  "hsl": {
    "h": 238.14,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.64458,
    "c": 0.18241,
    "h": 278.6
  },
  "luminance": 0.25248
}

Semantic roles & 50–950 ramp

primary
#787CF9
secondary
#F6F5D5
accent
#DE00E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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