#787FD9#787FD9

#787FD9 is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.1% C 0.134 H 278.4°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#787FD9
RGBrgb(120, 127, 217)
HSLhsl(236, 56%, 66%)
HSVhsv(236, 45%, 85%)
CMYKcmyk(44.7%, 41.5%, 0%, 14.9%)
CIE-LABlab(56.27, 20.62, -47.05)
CIE-LCHlch(56.27, 51.37, 293.67°)
OKLaboklab(63.09% 0.0197 -0.133)
OKLCHoklch(63.09% 0.134 278.4)
XYZxyz(27.8557, 24.1802, 68.8317)
Luminance0.2418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD9 #D9D278
analogous
#78AFD9 #787FD9 #A178D9
triadic
#787FD9 #D9787F #7FD978
tetradic
#787FD9 #D978AF #D9D278 #78D9A1
square
#787FD9 #D978AF #D9D278 #78D9A1
split-complementary
#787FD9 #D9A178 #AFD978
monochromatic
#2F38A7 #4852CC #787FD9 #A8ACE6 #D8DAF4

Accessibility & contrast

On white

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

On black

5.84
#787FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD9
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD9#FFFFFF#000000##000000
##787FD91.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8BDC
Deuteranopia (green-blind)
#5683D7
Tritanopia (blue-blind)
#5791A1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787fd9;
/* rgb */ color: rgb(120, 127, 217);
/* oklch */ color: oklch(63.1% 0.134 278.4);
Tailwind
colors: {
  custom: {
    50: '#a4a4e5',
    500: '#787fd9',
    950: '#000000',
  },
}
SCSS
$custom: #787fd9;
$custom-light: #a4a4e5;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd9",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 217
  },
  "hsl": {
    "h": 235.67,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63085,
    "c": 0.1344,
    "h": 278.4
  },
  "luminance": 0.24182
}

Semantic roles & 50–950 ramp

primary
#787FD9
secondary
#E6E4C6
accent
#B822C4
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#0F0F16
muted
#7F7F84

Preview Lab

Preview with #787FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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