#787FC7#787FC7

#787FC7 is a light, moderate blue. Relative luminance 0.233; OKLCH L 62.1% C 0.109 H 278.5°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#787FC7
RGBrgb(120, 127, 199)
HSLhsl(235, 41%, 63%)
HSVhsv(235, 40%, 78%)
CMYKcmyk(39.7%, 36.2%, 0%, 22%)
CIE-LABlab(55.37, 15.43, -38.29)
CIE-LCHlch(55.37, 41.28, 291.95°)
OKLaboklab(62.11% 0.016 -0.1074)
OKLCHoklch(62.11% 0.109 278.5)
XYZxyz(25.6409, 23.2943, 57.1670)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FC7 #C7C078
analogous
#78A6C7 #787FC7 #9978C7
triadic
#787FC7 #C7787F #7FC778
tetradic
#787FC7 #C778A6 #C7C078 #78C799
square
#787FC7 #C778A6 #C7C078 #78C799
split-complementary
#787FC7 #C79978 #A6C778
monochromatic
#3A418B #4D56B5 #787FC7 #A3A8D9 #CFD1EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787FC7#FFFFFF#000000##000000
##787FC71.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)
#6788CA
Deuteranopia (green-blind)
#6282C5
Tritanopia (blue-blind)
#608D9A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787fc7;
/* rgb */ color: rgb(120, 127, 199);
/* oklch */ color: oklch(62.1% 0.109 278.5);
Tailwind
colors: {
  custom: {
    50: '#a2a4d8',
    500: '#787fc7',
    950: '#000000',
  },
}
SCSS
$custom: #787fc7;
$custom-light: #a2a4d8;
$custom-dark: #000000;
JSON
{
  "hex": "#787fc7",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 199
  },
  "hsl": {
    "h": 234.684,
    "s": 41.361,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62108,
    "c": 0.10861,
    "h": 278.5
  },
  "luminance": 0.23295
}

Semantic roles & 50–950 ramp

primary
#787FC7
secondary
#DCD9BF
accent
#A931B4
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #787FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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