#7987CA#7987CA

#7987CA is a light, moderate blue. Relative luminance 0.257; OKLCH L 64.0% C 0.102 H 274.2°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7987CA
RGBrgb(121, 135, 202)
HSLhsl(230, 43%, 63%)
HSVhsv(230, 40%, 79%)
CMYKcmyk(40.1%, 33.2%, 0%, 20.8%)
CIE-LABlab(57.71, 11.81, -36.32)
CIE-LCHlch(57.71, 38.19, 288.01°)
OKLaboklab(63.97% 0.0074 -0.1017)
OKLCHoklch(63.97% 0.102 274.2)
XYZxyz(27.2066, 25.6559, 59.3842)
Luminance0.2566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987CA #CABC79
analogous
#79AFCA #7987CA #9379CA
triadic
#7987CA #CA7987 #87CA79
tetradic
#7987CA #CA79AF #CABC79 #79CA93
square
#7987CA #CA79AF #CABC79 #79CA93
split-complementary
#7987CA #CA9379 #AFCA79
monochromatic
#394890 #4D60B9 #7987CA #A5AEDB #D1D6ED

Accessibility & contrast

On white

3.42
#7987CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#7987CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987CA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987CA#FFFFFF#000000##000000
##7987CA1.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#708ECD
Deuteranopia (green-blind)
#6A88C8
Tritanopia (blue-blind)
#60949F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #7987ca;
/* rgb */ color: rgb(121, 135, 202);
/* oklch */ color: oklch(64.0% 0.102 274.2);
Tailwind
colors: {
  custom: {
    50: '#a3a9da',
    500: '#7987ca',
    950: '#000000',
  },
}
SCSS
$custom: #7987ca;
$custom-light: #a3a9da;
$custom-dark: #000000;
JSON
{
  "hex": "#7987ca",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 229.63,
    "s": 43.316,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63971,
    "c": 0.10196,
    "h": 274.2
  },
  "luminance": 0.25657
}

Semantic roles & 50–950 ramp

primary
#7987CA
secondary
#DED9C1
accent
#9F2FB6
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #7987CA

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

Preview Lab → · Contrast checker → · Palette generator →

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