#787DF9#787DF9

#787DF9 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.6% C 0.181 H 278.3°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#787DF9
RGBrgb(120, 125, 249)
HSLhsl(238, 91%, 72%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(51.8%, 49.8%, 0%, 2.4%)
CIE-LABlab(57.56, 31.40, -62.82)
CIE-LCHlch(57.56, 70.23, 296.56°)
OKLaboklab(64.64% 0.0262 -0.1792)
OKLCHoklch(64.64% 0.181 278.3)
XYZxyz(32.1729, 25.4979, 92.8304)
Luminance0.2550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DF9 #F9F478
analogous
#78BEF9 #787DF9 #B378F9
triadic
#787DF9 #F9787D #7DF978
tetradic
#787DF9 #F978BE #F9F478 #78F9B3
square
#787DF9 #F978BE #F9F478 #78F9B3
split-complementary
#787DF9 #F9B378 #BEF978
monochromatic
#0A13EC #3D45F6 #787DF9 #B3B5FC #E2E3FE

Accessibility & contrast

On white

3.44
#787DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#787DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DF9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DF9#FFFFFF#000000##000000
##787DF91.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8FFD
Deuteranopia (green-blind)
#3085F6
Tritanopia (blue-blind)
#4098AF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787df9;
/* rgb */ color: rgb(120, 125, 249);
/* oklch */ color: oklch(64.6% 0.181 278.3);
Tailwind
colors: {
  custom: {
    50: '#a7a2fc',
    500: '#787df9',
    950: '#000000',
  },
}
SCSS
$custom: #787df9;
$custom-light: #a7a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#787df9",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 237.674,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.64641,
    "c": 0.18112,
    "h": 278.3
  },
  "luminance": 0.255
}

Semantic roles & 50–950 ramp

primary
#787DF9
secondary
#F6F5D5
accent
#DD00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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