#7987BF#7987BF

#7987BF is a light, moderate blue. Relative luminance 0.252; OKLCH L 63.4% C 0.086 H 273.0°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7987BF
RGBrgb(121, 135, 191)
HSLhsl(228, 35%, 61%)
HSVhsv(228, 37%, 75%)
CMYKcmyk(36.6%, 29.3%, 0%, 25.1%)
CIE-LABlab(57.22, 8.74, -30.85)
CIE-LCHlch(57.22, 32.06, 285.83°)
OKLaboklab(63.44% 0.0045 -0.0859)
OKLCHoklch(63.44% 0.086 273)
XYZxyz(25.9503, 25.1534, 52.7679)
Luminance0.2515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987BF #BFB179
analogous
#79AABF #7987BF #8E79BF
triadic
#7987BF #BF7987 #87BF79
tetradic
#7987BF #BF79AA #BFB179 #79BF8E
square
#7987BF #BF79AA #BFB179 #79BF8E
split-complementary
#7987BF #BF8E79 #AABF79
monochromatic
#3D4B80 #5163AA #7987BF #A2ACD3 #CCD1E7

Accessibility & contrast

On white

3.48
#7987BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#7987BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987BF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987BF#FFFFFF#000000##000000
##7987BF1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#758CC1
Deuteranopia (green-blind)
#6F87BE
Tritanopia (blue-blind)
#64929B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7987bf;
/* rgb */ color: rgb(121, 135, 191);
/* oklch */ color: oklch(63.4% 0.086 273.0);
Tailwind
colors: {
  custom: {
    50: '#a2a9d2',
    500: '#7987bf',
    950: '#000000',
  },
}
SCSS
$custom: #7987bf;
$custom-light: #a2a9d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7987bf",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 191
  },
  "hsl": {
    "h": 228,
    "s": 35.354,
    "l": 61.176
  },
  "oklch": {
    "l": 0.63437,
    "c": 0.08602,
    "h": 273
  },
  "luminance": 0.25154
}

Semantic roles & 50–950 ramp

primary
#7987BF
secondary
#D7D2BD
accent
#9637AE
background
#FAFAFC
surface
#F4F4F9
border
#CECED2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #7987BF

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

Preview Lab → · Contrast checker → · Palette generator →

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