#7987FB#7987FB

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

Color values

HEX#7987FB
RGBrgb(121, 135, 251)
HSLhsl(234, 94%, 73%)
HSVhsv(234, 52%, 98%)
CMYKcmyk(51.8%, 46.2%, 0%, 1.6%)
CIE-LABlab(60.21, 26.30, -59.67)
CIE-LCHlch(60.21, 65.21, 293.78°)
OKLaboklab(66.7% 0.0166 -0.1699)
OKLCHoklch(66.7% 0.171 275.6)
XYZxyz(33.9562, 28.3558, 94.9320)
Luminance0.2836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987FB #FBED79
analogous
#79C8FB #7987FB #AC79FB
triadic
#7987FB #FB7987 #87FB79
tetradic
#7987FB #FB79C8 #FBED79 #79FBAC
square
#7987FB #FB79C8 #FBED79 #79FBAC
split-complementary
#7987FB #FBAC79 #C8FB79
monochromatic
#0721F2 #3E52F9 #7987FB #B4BCFD #E1E4FE

Accessibility & contrast

On white

3.15
#7987FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#7987FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987FB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987FB#FFFFFF#000000##000000
##7987FB1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5397FF
Deuteranopia (green-blind)
#458CF8
Tritanopia (blue-blind)
#3FA0B5
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7987fb;
/* rgb */ color: rgb(121, 135, 251);
/* oklch */ color: oklch(66.7% 0.171 275.6);
Tailwind
colors: {
  custom: {
    50: '#a8a9fd',
    500: '#7987fb',
    950: '#000000',
  },
}
SCSS
$custom: #7987fb;
$custom-light: #a8a9fd;
$custom-dark: #000000;
JSON
{
  "hex": "#7987fb",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 233.538,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.667,
    "c": 0.17067,
    "h": 275.6
  },
  "luminance": 0.28358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7987FB

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

Preview Lab → · Contrast checker → · Palette generator →

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