#787FD8#787FD8

#787FD8 is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.0% C 0.133 H 278.4°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#787FD8
RGBrgb(120, 127, 216)
HSLhsl(236, 55%, 66%)
HSVhsv(236, 44%, 85%)
CMYKcmyk(44.4%, 41.2%, 0%, 15.3%)
CIE-LABlab(56.22, 20.33, -46.57)
CIE-LCHlch(56.22, 50.81, 293.58°)
OKLaboklab(63.03% 0.0195 -0.1315)
OKLCHoklch(63.03% 0.133 278.4)
XYZxyz(27.7260, 24.1283, 68.1487)
Luminance0.2413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD8 #D8D178
analogous
#78AFD8 #787FD8 #A178D8
triadic
#787FD8 #D8787F #7FD878
tetradic
#787FD8 #D878AF #D8D178 #78D8A1
square
#787FD8 #D878AF #D8D178 #78D8A1
split-complementary
#787FD8 #D8A178 #AFD878
monochromatic
#3038A6 #4952CA #787FD8 #A7ACE6 #D7D9F3

Accessibility & contrast

On white

3.60
#787FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#787FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD8
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD8#FFFFFF#000000##000000
##787FD81.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8BDB
Deuteranopia (green-blind)
#5783D6
Tritanopia (blue-blind)
#5891A1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787fd8;
/* rgb */ color: rgb(120, 127, 216);
/* oklch */ color: oklch(63.0% 0.133 278.4);
Tailwind
colors: {
  custom: {
    50: '#a3a4e4',
    500: '#787fd8',
    950: '#000000',
  },
}
SCSS
$custom: #787fd8;
$custom-light: #a3a4e4;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd8",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 216
  },
  "hsl": {
    "h": 235.625,
    "s": 55.172,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63028,
    "c": 0.13298,
    "h": 278.4
  },
  "luminance": 0.2413
}

Semantic roles & 50–950 ramp

primary
#787FD8
secondary
#E6E3C6
accent
#B723C3
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#0F0F15
muted
#7F7F84

Preview Lab

Preview with #787FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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