#7987DF#7987DF

#7987DF is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.1% C 0.132 H 275.3°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7987DF
RGBrgb(121, 135, 223)
HSLhsl(232, 61%, 67%)
HSVhsv(232, 46%, 87%)
CMYKcmyk(45.7%, 39.5%, 0%, 12.5%)
CIE-LABlab(58.71, 17.88, -46.53)
CIE-LCHlch(58.71, 49.85, 291.02°)
OKLaboklab(65.07% 0.0121 -0.1314)
OKLCHoklch(65.07% 0.132 275.3)
XYZxyz(29.8643, 26.7190, 73.3814)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987DF #DFD179
analogous
#79BADF #7987DF #9E79DF
triadic
#7987DF #DF7987 #87DF79
tetradic
#7987DF #DF79BA #DFD179 #79DF9E
square
#7987DF #DF79BA #DFD179 #79DF9E
split-complementary
#7987DF #DF9E79 #BADF79
monochromatic
#2B3DB3 #485BD3 #7987DF #AAB3EB #DCDFF7

Accessibility & contrast

On white

3.31
#7987DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#7987DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987DF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987DF#FFFFFF#000000##000000
##7987DF1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6692E2
Deuteranopia (green-blind)
#5D89DD
Tritanopia (blue-blind)
#5499A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7987df;
/* rgb */ color: rgb(121, 135, 223);
/* oklch */ color: oklch(65.1% 0.132 275.3);
Tailwind
colors: {
  custom: {
    50: '#a5a9e9',
    500: '#7987df',
    950: '#000000',
  },
}
SCSS
$custom: #7987df;
$custom-light: #a5a9e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7987df",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 231.765,
    "s": 61.446,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65074,
    "c": 0.13194,
    "h": 275.3
  },
  "luminance": 0.26721
}

Semantic roles & 50–950 ramp

primary
#7987DF
secondary
#EAE5CA
accent
#B11CC9
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #7987DF

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

Preview Lab → · Contrast checker → · Palette generator →

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