#7987F5#7987F5

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

Color values

HEX#7987F5
RGBrgb(121, 135, 245)
HSLhsl(233, 86%, 72%)
HSVhsv(233, 51%, 96%)
CMYKcmyk(50.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(59.87, 24.47, -56.90)
CIE-LCHlch(59.87, 61.94, 293.27°)
OKLaboklab(66.34% 0.0158 -0.1617)
OKLCHoklch(66.34% 0.163 275.6)
XYZxyz(33.0254, 27.9834, 90.0296)
Luminance0.2798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7987F5 #F5E779
analogous
#79C5F5 #7987F5 #A979F5
triadic
#7987F5 #F57987 #87F579
tetradic
#7987F5 #F579C5 #F5E779 #79F5A9
square
#7987F5 #F579C5 #F5E779 #79F5A9
split-complementary
#7987F5 #F5A979 #C5F579
monochromatic
#1129E3 #4054F1 #7987F5 #B2BAF9 #E3E5FD

Accessibility & contrast

On white

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

On black

6.60
#7987F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7987F5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7987F5#FFFFFF#000000##000000
##7987F51.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5896F9
Deuteranopia (green-blind)
#4B8BF3
Tritanopia (blue-blind)
#449FB2
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7987f5;
/* rgb */ color: rgb(121, 135, 245);
/* oklch */ color: oklch(66.3% 0.163 275.6);
Tailwind
colors: {
  custom: {
    50: '#a7a9f9',
    500: '#7987f5',
    950: '#000000',
  },
}
SCSS
$custom: #7987f5;
$custom-light: #a7a9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7987f5",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 233.226,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66337,
    "c": 0.1625,
    "h": 275.6
  },
  "luminance": 0.27985
}

Semantic roles & 50–950 ramp

primary
#7987F5
secondary
#F5F1D5
accent
#C903E3
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7987F5

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

Preview Lab → · Contrast checker → · Palette generator →

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