#7981EB#7981EB

#7981EB is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.6% C 0.157 H 277.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7981EB
RGBrgb(121, 129, 235)
HSLhsl(236, 74%, 70%)
HSVhsv(236, 49%, 92%)
CMYKcmyk(48.5%, 45.1%, 0%, 7.8%)
CIE-LABlab(57.81, 25.01, -54.65)
CIE-LCHlch(57.81, 60.10, 294.59°)
OKLaboklab(64.59% 0.0213 -0.1552)
OKLCHoklch(64.59% 0.157 277.8)
XYZxyz(30.7262, 25.7619, 81.9346)
Luminance0.2576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7981EB #EBE379
analogous
#79BAEB #7981EB #AA79EB
triadic
#7981EB #EB7981 #81EB79
tetradic
#7981EB #EB79BA #EBE379 #79EBAA
square
#7981EB #EB79BA #EBE379 #79EBAA
split-complementary
#7981EB #EBAA79 #BAEB79
monochromatic
#1E2ACB #444FE3 #7981EB #AEB3F3 #E4E5FB

Accessibility & contrast

On white

3.41
#7981EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#7981EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7981EB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7981EB#FFFFFF#000000##000000
##7981EB1.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590EF
Deuteranopia (green-blind)
#4B87E9
Tritanopia (blue-blind)
#4D98AB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #7981eb;
/* rgb */ color: rgb(121, 129, 235);
/* oklch */ color: oklch(64.6% 0.157 277.8);
Tailwind
colors: {
  custom: {
    50: '#a6a5f2',
    500: '#7981eb',
    950: '#000000',
  },
}
SCSS
$custom: #7981eb;
$custom-light: #a6a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7981eb",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 235.789,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6459,
    "c": 0.15663,
    "h": 277.8
  },
  "luminance": 0.25764
}

Semantic roles & 50–950 ramp

primary
#7981EB
secondary
#F0EED0
accent
#C80FD6
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7981EB

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

Preview Lab → · Contrast checker → · Palette generator →

#7981EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva