#7971EA#7971EA

#7971EA is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.6% C 0.177 H 282.9°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7971EA
RGBrgb(121, 113, 234)
HSLhsl(244, 74%, 68%)
HSVhsv(244, 52%, 92%)
CMYKcmyk(48.3%, 51.7%, 0%, 8.2%)
CIE-LABlab(53.83, 34.21, -60.47)
CIE-LCHlch(53.83, 69.48, 299.50°)
OKLaboklab(61.57% 0.0394 -0.1724)
OKLCHoklch(61.57% 0.177 282.9)
XYZxyz(28.6371, 21.8143, 80.5276)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971EA #E2EA71
analogous
#71A5EA #7971EA #B571EA
triadic
#7971EA #EA7971 #71EA79
tetradic
#7971EA #EA71A5 #E2EA71 #71EAB5
square
#7971EA #EA71A5 #E2EA71 #71EAB5
split-complementary
#7971EA #EAB571 #A5EA71
monochromatic
#281DC4 #473CE2 #7971EA #ABA6F2 #DEDCFA

Accessibility & contrast

On white

3.92
#7971EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7971EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971EA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971EA#FFFFFF#000000##000000
##7971EA1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3485EE
Deuteranopia (green-blind)
#2C7DE7
Tritanopia (blue-blind)
#508BA3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7971ea;
/* rgb */ color: rgb(121, 113, 234);
/* oklch */ color: oklch(61.6% 0.177 282.9);
Tailwind
colors: {
  custom: {
    50: '#a79af1',
    500: '#7971ea',
    950: '#000000',
  },
}
SCSS
$custom: #7971ea;
$custom-light: #a79af1;
$custom-dark: #000000;
JSON
{
  "hex": "#7971ea",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 243.967,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61571,
    "c": 0.17681,
    "h": 282.9
  },
  "luminance": 0.21816
}

Semantic roles & 50–950 ramp

primary
#7971EA
secondary
#EBEEC9
accent
#D60FC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7971EA

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

Preview Lab → · Contrast checker → · Palette generator →

#7971EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva