#7987FC#7987FC

#7987FC is a light, vivid blue. Relative luminance 0.284; OKLCH L 66.8% C 0.172 H 275.6°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7987FC
RGBrgb(121, 135, 252)
HSLhsl(234, 96%, 73%)
HSVhsv(234, 52%, 99%)
CMYKcmyk(52%, 46.4%, 0%, 1.2%)
CIE-LABlab(60.27, 26.60, -60.13)
CIE-LCHlch(60.27, 65.75, 293.87°)
OKLaboklab(66.76% 0.0167 -0.1712)
OKLCHoklch(66.76% 0.172 275.6)
XYZxyz(34.1142, 28.4190, 95.7644)
Luminance0.2842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987FC #FCEE79
analogous
#79C8FC #7987FC #AC79FC
triadic
#7987FC #FC7987 #87FC79
tetradic
#7987FC #FC79C8 #FCEE79 #79FCAC
square
#7987FC #FC79C8 #FCEE79 #79FCAC
split-complementary
#7987FC #FCAC79 #C8FC79
monochromatic
#051FF5 #3D51FB #7987FC #B5BDFD #E1E4FE

Accessibility & contrast

On white

3.14
#7987FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#7987FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987FC
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987FC#FFFFFF#000000##000000
##7987FC1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5297FF
Deuteranopia (green-blind)
#438CF9
Tritanopia (blue-blind)
#3EA1B5
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7987fc;
/* rgb */ color: rgb(121, 135, 252);
/* oklch */ color: oklch(66.8% 0.172 275.6);
Tailwind
colors: {
  custom: {
    50: '#a8a9fe',
    500: '#7987fc',
    950: '#000000',
  },
}
SCSS
$custom: #7987fc;
$custom-light: #a8a9fe;
$custom-dark: #000000;
JSON
{
  "hex": "#7987fc",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 233.588,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.66761,
    "c": 0.17202,
    "h": 275.6
  },
  "luminance": 0.28421
}

Semantic roles & 50–950 ramp

primary
#7987FC
secondary
#F7F3D4
accent
#CD00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #7987FC

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

Preview Lab → · Contrast checker → · Palette generator →

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