#787CD7#787CD7

#787CD7 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.4% C 0.136 H 279.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#787CD7
RGBrgb(120, 124, 215)
HSLhsl(237, 54%, 66%)
HSVhsv(237, 44%, 84%)
CMYKcmyk(44.2%, 42.3%, 0%, 15.7%)
CIE-LABlab(55.39, 21.82, -47.31)
CIE-LCHlch(55.39, 52.10, 294.76°)
OKLaboklab(62.38% 0.0231 -0.1337)
OKLCHoklch(62.38% 0.136 279.8)
XYZxyz(27.2155, 23.3134, 67.3427)
Luminance0.2331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CD7 #D7D378
analogous
#78ABD7 #787CD7 #A378D7
triadic
#787CD7 #D7787C #7CD778
tetradic
#787CD7 #D778AB #D7D378 #78D7A3
square
#787CD7 #D778AB #D7D378 #78D7A3
split-complementary
#787CD7 #D7A378 #ABD778
monochromatic
#3135A4 #494EC9 #787CD7 #A7AAE5 #D6D8F3

Accessibility & contrast

On white

3.71
#787CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#787CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CD7
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CD7#FFFFFF#000000##000000
##787CD71.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A88DA
Deuteranopia (green-blind)
#5381D5
Tritanopia (blue-blind)
#598F9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787cd7;
/* rgb */ color: rgb(120, 124, 215);
/* oklch */ color: oklch(62.4% 0.136 279.8);
Tailwind
colors: {
  custom: {
    50: '#a3a1e4',
    500: '#787cd7',
    950: '#000000',
  },
}
SCSS
$custom: #787cd7;
$custom-light: #a3a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#787cd7",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 237.474,
    "s": 54.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62384,
    "c": 0.1357,
    "h": 279.8
  },
  "luminance": 0.23315
}

Semantic roles & 50–950 ramp

primary
#787CD7
secondary
#E5E4C6
accent
#BB24C2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#0F0F15
muted
#7F7E84

Preview Lab

Preview with #787CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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