#787DF8#787DF8

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

Color values

HEX#787DF8
RGBrgb(120, 125, 248)
HSLhsl(238, 90%, 72%)
HSVhsv(238, 52%, 97%)
CMYKcmyk(51.6%, 49.6%, 0%, 2.7%)
CIE-LABlab(57.50, 31.10, -62.37)
CIE-LCHlch(57.50, 69.69, 296.50°)
OKLaboklab(64.58% 0.0261 -0.1779)
OKLCHoklch(64.58% 0.18 278.3)
XYZxyz(32.0173, 25.4357, 92.0112)
Luminance0.2544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DF8 #F8F378
analogous
#78BDF8 #787DF8 #B378F8
triadic
#787DF8 #F8787D #7DF878
tetradic
#787DF8 #F878BD #F8F378 #78F8B3
square
#787DF8 #F878BD #F8F378 #78F8B3
split-complementary
#787DF8 #F8B378 #BDF878
monochromatic
#0C15E9 #3E45F5 #787DF8 #B2B5FB #E2E3FD

Accessibility & contrast

On white

3.45
#787DF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#787DF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DF8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DF8#FFFFFF#000000##000000
##787DF81.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFC
Deuteranopia (green-blind)
#3285F5
Tritanopia (blue-blind)
#4198AF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787df8;
/* rgb */ color: rgb(120, 125, 248);
/* oklch */ color: oklch(64.6% 0.180 278.3);
Tailwind
colors: {
  custom: {
    50: '#a7a2fb',
    500: '#787df8',
    950: '#000000',
  },
}
SCSS
$custom: #787df8;
$custom-light: #a7a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#787df8",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 237.656,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64577,
    "c": 0.17978,
    "h": 278.3
  },
  "luminance": 0.25438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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