#7987D3#7987D3

#7987D3 is a light, moderate blue. Relative luminance 0.261; OKLCH L 64.4% C 0.115 H 274.8°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7987D3
RGBrgb(121, 135, 211)
HSLhsl(231, 51%, 65%)
HSVhsv(231, 43%, 83%)
CMYKcmyk(42.7%, 36%, 0%, 17.3%)
CIE-LABlab(58.13, 14.38, -40.74)
CIE-LCHlch(58.13, 43.20, 289.44°)
OKLaboklab(64.43% 0.0096 -0.1145)
OKLCHoklch(64.43% 0.115 274.8)
XYZxyz(28.3034, 26.0946, 65.1608)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987D3 #D3C579
analogous
#79B4D3 #7987D3 #9879D3
triadic
#7987D3 #D37987 #87D379
tetradic
#7987D3 #D379B4 #D3C579 #79D398
square
#7987D3 #D379B4 #D3C579 #79D398
split-complementary
#7987D3 #D39879 #B4D379
monochromatic
#34449E #4B5EC4 #7987D3 #A7B0E2 #D5DAF1

Accessibility & contrast

On white

3.38
#7987D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#7987D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987D3
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987D3#FFFFFF#000000##000000
##7987D31.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C90D6
Deuteranopia (green-blind)
#6588D1
Tritanopia (blue-blind)
#5B96A3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7987d3;
/* rgb */ color: rgb(121, 135, 211);
/* oklch */ color: oklch(64.4% 0.115 274.8);
Tailwind
colors: {
  custom: {
    50: '#a3a9e1',
    500: '#7987d3',
    950: '#000000',
  },
}
SCSS
$custom: #7987d3;
$custom-light: #a3a9e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7987d3",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 211
  },
  "hsl": {
    "h": 230.667,
    "s": 50.562,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64431,
    "c": 0.11489,
    "h": 274.8
  },
  "luminance": 0.26096
}

Semantic roles & 50–950 ramp

primary
#7987D3
secondary
#E3DEC5
accent
#A728BE
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #7987D3

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

Preview Lab → · Contrast checker → · Palette generator →

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