#787FD7#787FD7

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

Color values

HEX#787FD7
RGBrgb(120, 127, 215)
HSLhsl(236, 54%, 66%)
HSVhsv(236, 44%, 84%)
CMYKcmyk(44.2%, 40.9%, 0%, 15.7%)
CIE-LABlab(56.16, 20.03, -46.09)
CIE-LCHlch(56.16, 50.25, 293.50°)
OKLaboklab(62.97% 0.0194 -0.1301)
OKLCHoklch(62.97% 0.132 278.5)
XYZxyz(27.5971, 24.0768, 67.4700)
Luminance0.2408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD7 #D7D078
analogous
#78AED7 #787FD7 #A078D7
triadic
#787FD7 #D7787F #7FD778
tetradic
#787FD7 #D778AE #D7D078 #78D7A0
square
#787FD7 #D778AE #D7D078 #78D7A0
split-complementary
#787FD7 #D7A078 #AED778
monochromatic
#3139A4 #4952C9 #787FD7 #A7ACE5 #D6D9F3

Accessibility & contrast

On white

3.61
#787FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#787FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD7#FFFFFF#000000##000000
##787FD71.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8ADA
Deuteranopia (green-blind)
#5883D5
Tritanopia (blue-blind)
#5891A1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787fd7;
/* rgb */ color: rgb(120, 127, 215);
/* oklch */ color: oklch(63.0% 0.132 278.5);
Tailwind
colors: {
  custom: {
    50: '#a3a4e4',
    500: '#787fd7',
    950: '#000000',
  },
}
SCSS
$custom: #787fd7;
$custom-light: #a3a4e4;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd7",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 215
  },
  "hsl": {
    "h": 235.579,
    "s": 54.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62972,
    "c": 0.13157,
    "h": 278.5
  },
  "luminance": 0.24078
}

Semantic roles & 50–950 ramp

primary
#787FD7
secondary
#E5E3C6
accent
#B624C2
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#0F0F15
muted
#7F7F84

Preview Lab

Preview with #787FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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