#7987DC#7987DC

#7987DC is a light, vivid blue. Relative luminance 0.266; OKLCH L 64.9% C 0.128 H 275.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7987DC
RGBrgb(121, 135, 220)
HSLhsl(232, 59%, 67%)
HSVhsv(232, 45%, 86%)
CMYKcmyk(45%, 38.6%, 0%, 13.7%)
CIE-LABlab(58.56, 17.00, -45.09)
CIE-LCHlch(58.56, 48.19, 290.65°)
OKLaboklab(64.91% 0.0115 -0.1272)
OKLCHoklch(64.91% 0.128 275.2)
XYZxyz(29.4634, 26.5586, 71.2701)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987DC #DCCE79
analogous
#79B9DC #7987DC #9D79DC
triadic
#7987DC #DC7987 #87DC79
tetradic
#7987DC #DC79B9 #DCCE79 #79DC9D
square
#7987DC #DC79B9 #DCCE79 #79DC9D
split-complementary
#7987DC #DC9D79 #B9DC79
monochromatic
#2D3FAD #485CCF #7987DC #AAB2E9 #DADEF5

Accessibility & contrast

On white

3.33
#7987DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#7987DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987DC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987DC#FFFFFF#000000##000000
##7987DC1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6891DF
Deuteranopia (green-blind)
#5F89DA
Tritanopia (blue-blind)
#5698A7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7987dc;
/* rgb */ color: rgb(121, 135, 220);
/* oklch */ color: oklch(64.9% 0.128 275.2);
Tailwind
colors: {
  custom: {
    50: '#a4a9e7',
    500: '#7987dc',
    950: '#000000',
  },
}
SCSS
$custom: #7987dc;
$custom-light: #a4a9e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7987dc",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 231.515,
    "s": 58.58,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6491,
    "c": 0.1277,
    "h": 275.2
  },
  "luminance": 0.2656
}

Semantic roles & 50–950 ramp

primary
#7987DC
secondary
#E8E4C9
accent
#AF1FC6
background
#FAFAFE
surface
#F4F4FC
border
#CECED5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #7987DC

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

Preview Lab → · Contrast checker → · Palette generator →

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