#7987CE#7987CE

#7987CE is a light, moderate blue. Relative luminance 0.258; OKLCH L 64.2% C 0.108 H 274.5°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7987CE
RGBrgb(121, 135, 206)
HSLhsl(230, 46%, 64%)
HSVhsv(230, 41%, 81%)
CMYKcmyk(41.3%, 34.5%, 0%, 19.2%)
CIE-LABlab(57.89, 12.94, -38.29)
CIE-LCHlch(57.89, 40.42, 288.68°)
OKLaboklab(64.17% 0.0084 -0.1074)
OKLCHoklch(64.17% 0.108 274.5)
XYZxyz(27.6864, 25.8478, 61.9109)
Luminance0.2585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987CE #CEC079
analogous
#79B2CE #7987CE #9679CE
triadic
#7987CE #CE7987 #87CE79
tetradic
#7987CE #CE79B2 #CEC079 #79CE96
square
#7987CE #CE79B2 #CEC079 #79CE96
split-complementary
#7987CE #CE9679 #B2CE79
monochromatic
#374696 #4C5FBE #7987CE #A6AFDE #D3D7EF

Accessibility & contrast

On white

3.40
#7987CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#7987CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987CE
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987CE#FFFFFF#000000##000000
##7987CE1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8FD1
Deuteranopia (green-blind)
#6888CC
Tritanopia (blue-blind)
#5E95A1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #7987ce;
/* rgb */ color: rgb(121, 135, 206);
/* oklch */ color: oklch(64.2% 0.108 274.5);
Tailwind
colors: {
  custom: {
    50: '#a3a9dd',
    500: '#7987ce',
    950: '#000000',
  },
}
SCSS
$custom: #7987ce;
$custom-light: #a3a9dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7987ce",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 206
  },
  "hsl": {
    "h": 230.118,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64173,
    "c": 0.10772,
    "h": 274.5
  },
  "luminance": 0.25849
}

Semantic roles & 50–950 ramp

primary
#7987CE
secondary
#E0DBC3
accent
#A22CBA
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #7987CE

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

Preview Lab → · Contrast checker → · Palette generator →

#7987CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva