#787BFD#787BFD

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

Color values

HEX#787BFD
RGBrgb(120, 123, 253)
HSLhsl(239, 97%, 73%)
HSVhsv(239, 53%, 99%)
CMYKcmyk(52.6%, 51.4%, 0%, 0.8%)
CIE-LABlab(57.32, 33.81, -65.42)
CIE-LCHlch(57.32, 73.63, 297.33°)
OKLaboklab(64.54% 0.0286 -0.1869)
OKLCHoklch(64.54% 0.189 278.7)
XYZxyz(32.5528, 25.2488, 96.0676)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BFD #FDFA78
analogous
#78BDFD #787BFD #B878FD
triadic
#787BFD #FD787B #7BFD78
tetradic
#787BFD #FD78BD #FDFA78 #78FDB8
square
#787BFD #FD78BD #FDFA78 #78FDB8
split-complementary
#787BFD #FDB878 #BDFD78
monochromatic
#0409F7 #3C40FC #787BFD #B4B6FE #E1E2FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787BFD#FFFFFF#000000##000000
##787BFD1.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)
#358FFF
Deuteranopia (green-blind)
#2184FA
Tritanopia (blue-blind)
#3C98B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787bfd;
/* rgb */ color: rgb(120, 123, 253);
/* oklch */ color: oklch(64.5% 0.189 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a1ff',
    500: '#787bfd',
    950: '#000000',
  },
}
SCSS
$custom: #787bfd;
$custom-light: #a8a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787bfd",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 253
  },
  "hsl": {
    "h": 238.647,
    "s": 97.08,
    "l": 73.137
  },
  "oklch": {
    "l": 0.64539,
    "c": 0.18903,
    "h": 278.7
  },
  "luminance": 0.25251
}

Semantic roles & 50–950 ramp

primary
#787BFD
secondary
#F7F6D4
accent
#E000E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #787BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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