#7987F2#7987F2

#7987F2 is a light, vivid blue. Relative luminance 0.278; OKLCH L 66.2% C 0.158 H 275.6°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7987F2
RGBrgb(121, 135, 242)
HSLhsl(233, 82%, 71%)
HSVhsv(233, 50%, 95%)
CMYKcmyk(50%, 44.2%, 0%, 5.1%)
CIE-LABlab(59.71, 23.56, -55.51)
CIE-LCHlch(59.71, 60.30, 293.00°)
OKLaboklab(66.16% 0.0154 -0.1576)
OKLCHoklch(66.16% 0.158 275.6)
XYZxyz(32.5711, 27.8017, 87.6372)
Luminance0.2780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987F2 #F2E479
analogous
#79C3F2 #7987F2 #A779F2
triadic
#7987F2 #F27987 #87F279
tetradic
#7987F2 #F279C3 #F2E479 #79F2A7
square
#7987F2 #F279C3 #F2E479 #79F2A7
split-complementary
#7987F2 #F2A779 #C3F279
monochromatic
#152CDB #4155ED #7987F2 #B1B9F7 #E3E6FC

Accessibility & contrast

On white

3.20
#7987F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#7987F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987F2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987F2#FFFFFF#000000##000000
##7987F21.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F6
Deuteranopia (green-blind)
#4E8BF0
Tritanopia (blue-blind)
#479EB1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7987f2;
/* rgb */ color: rgb(121, 135, 242);
/* oklch */ color: oklch(66.2% 0.158 275.6);
Tailwind
colors: {
  custom: {
    50: '#a7a9f7',
    500: '#7987f2',
    950: '#000000',
  },
}
SCSS
$custom: #7987f2;
$custom-light: #a7a9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7987f2",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 233.058,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66158,
    "c": 0.15839,
    "h": 275.6
  },
  "luminance": 0.27804
}

Semantic roles & 50–950 ramp

primary
#7987F2
secondary
#F3F0D3
accent
#C607DF
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7987F2

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

Preview Lab → · Contrast checker → · Palette generator →

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