#7987F6#7987F6

#7987F6 is a light, vivid blue. Relative luminance 0.280; OKLCH L 66.4% C 0.164 H 275.6°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7987F6
RGBrgb(121, 135, 246)
HSLhsl(233, 87%, 72%)
HSVhsv(233, 51%, 96%)
CMYKcmyk(50.8%, 45.1%, 0%, 3.5%)
CIE-LABlab(59.93, 24.77, -57.36)
CIE-LCHlch(59.93, 62.49, 293.36°)
OKLaboklab(66.4% 0.016 -0.1631)
OKLCHoklch(66.4% 0.164 275.6)
XYZxyz(33.1784, 28.0446, 90.8358)
Luminance0.2805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987F6 #F6E879
analogous
#79C6F6 #7987F6 #AA79F6
triadic
#7987F6 #F67987 #87F679
tetradic
#7987F6 #F679C6 #F6E879 #79F6AA
square
#7987F6 #F679C6 #F6E879 #79F6AA
split-complementary
#7987F6 #F6AA79 #C6F679
monochromatic
#0F27E5 #4054F2 #7987F6 #B2BAFA #E2E5FD

Accessibility & contrast

On white

3.18
#7987F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#7987F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987F6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987F6#FFFFFF#000000##000000
##7987F61.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5796FA
Deuteranopia (green-blind)
#4A8BF4
Tritanopia (blue-blind)
#439FB3
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7987f6;
/* rgb */ color: rgb(121, 135, 246);
/* oklch */ color: oklch(66.4% 0.164 275.6);
Tailwind
colors: {
  custom: {
    50: '#a7a9fa',
    500: '#7987f6',
    950: '#000000',
  },
}
SCSS
$custom: #7987f6;
$custom-light: #a7a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7987f6",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 233.28,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66397,
    "c": 0.16387,
    "h": 275.6
  },
  "luminance": 0.28047
}

Semantic roles & 50–950 ramp

primary
#7987F6
secondary
#F5F2D6
accent
#CB02E4
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7987F6

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

Preview Lab → · Contrast checker → · Palette generator →

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