#7987F8#7987F8

#7987F8 is a light, vivid blue. Relative luminance 0.282; OKLCH L 66.5% C 0.167 H 275.6°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7987F8
RGBrgb(121, 135, 248)
HSLhsl(233, 90%, 72%)
HSVhsv(233, 51%, 97%)
CMYKcmyk(51.2%, 45.6%, 0%, 2.7%)
CIE-LABlab(60.04, 25.38, -58.29)
CIE-LCHlch(60.04, 63.58, 293.53°)
OKLaboklab(66.52% 0.0162 -0.1658)
OKLCHoklch(66.52% 0.167 275.6)
XYZxyz(33.4870, 28.1681, 92.4612)
Luminance0.2817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987F8 #F8EA79
analogous
#79C6F8 #7987F8 #AB79F8
triadic
#7987F8 #F87987 #87F879
tetradic
#7987F8 #F879C6 #F8EA79 #79F8AB
square
#7987F8 #F879C6 #F8EA79 #79F8AB
split-complementary
#7987F8 #F8AB79 #C6F879
monochromatic
#0C25EA #3F53F5 #7987F8 #B3BBFB #E2E5FD

Accessibility & contrast

On white

3.17
#7987F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#7987F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987F8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987F8#FFFFFF#000000##000000
##7987F81.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5596FC
Deuteranopia (green-blind)
#488CF6
Tritanopia (blue-blind)
#419FB4
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7987f8;
/* rgb */ color: rgb(121, 135, 248);
/* oklch */ color: oklch(66.5% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#a7a9fb',
    500: '#7987f8',
    950: '#000000',
  },
}
SCSS
$custom: #7987f8;
$custom-light: #a7a9fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7987f8",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 233.386,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.66518,
    "c": 0.16659,
    "h": 275.6
  },
  "luminance": 0.2817
}

Semantic roles & 50–950 ramp

primary
#7987F8
secondary
#F6F2D5
accent
#CC00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7987F8

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

Preview Lab → · Contrast checker → · Palette generator →

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