#7987F4#7987F4

#7987F4 is a light, vivid blue. Relative luminance 0.279; OKLCH L 66.3% C 0.161 H 275.6°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7987F4
RGBrgb(121, 135, 244)
HSLhsl(233, 85%, 72%)
HSVhsv(233, 50%, 96%)
CMYKcmyk(50.4%, 44.7%, 0%, 4.3%)
CIE-LABlab(59.82, 24.17, -56.44)
CIE-LCHlch(59.82, 61.39, 293.18°)
OKLaboklab(66.28% 0.0157 -0.1604)
OKLCHoklch(66.28% 0.161 275.6)
XYZxyz(32.8731, 27.9225, 89.2278)
Luminance0.2792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987F4 #F4E679
analogous
#79C5F4 #7987F4 #A979F4
triadic
#7987F4 #F47987 #87F479
tetradic
#7987F4 #F479C5 #F4E679 #79F4A9
square
#7987F4 #F479C5 #F4E679 #79F4A9
split-complementary
#7987F4 #F4A979 #C5F479
monochromatic
#122AE0 #4054EF #7987F4 #B2BAF9 #E3E6FD

Accessibility & contrast

On white

3.19
#7987F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#7987F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987F4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987F4#FFFFFF#000000##000000
##7987F41.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5995F8
Deuteranopia (green-blind)
#4C8BF2
Tritanopia (blue-blind)
#459EB2
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7987f4;
/* rgb */ color: rgb(121, 135, 244);
/* oklch */ color: oklch(66.3% 0.161 275.6);
Tailwind
colors: {
  custom: {
    50: '#a7a9f8',
    500: '#7987f4',
    950: '#000000',
  },
}
SCSS
$custom: #7987f4;
$custom-light: #a7a9f8;
$custom-dark: #000000;
JSON
{
  "hex": "#7987f4",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 233.171,
    "s": 84.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66277,
    "c": 0.16114,
    "h": 275.6
  },
  "luminance": 0.27925
}

Semantic roles & 50–950 ramp

primary
#7987F4
secondary
#F4F1D5
accent
#C804E1
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7987F4

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

Preview Lab → · Contrast checker → · Palette generator →

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