#7971EB#7971EB

#7971EB is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.6% C 0.178 H 282.8°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7971EB
RGBrgb(121, 113, 235)
HSLhsl(244, 75%, 68%)
HSVhsv(244, 52%, 92%)
CMYKcmyk(48.5%, 51.9%, 0%, 7.8%)
CIE-LABlab(53.89, 34.50, -60.93)
CIE-LCHlch(53.89, 70.02, 299.52°)
OKLaboklab(61.64% 0.0395 -0.1737)
OKLCHoklch(61.64% 0.178 282.8)
XYZxyz(28.7812, 21.8719, 81.2863)
Luminance0.2187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971EB #E3EB71
analogous
#71A6EB #7971EB #B671EB
triadic
#7971EB #EB7971 #71EB79
tetradic
#7971EB #EB71A6 #E3EB71 #71EBB6
square
#7971EB #EB71A6 #E3EB71 #71EBB6
split-complementary
#7971EB #EBB671 #A6EB71
monochromatic
#271CC6 #463BE3 #7971EB #ACA7F3 #DEDCFA

Accessibility & contrast

On white

3.91
#7971EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#7971EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971EB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971EB#FFFFFF#000000##000000
##7971EB1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3385EF
Deuteranopia (green-blind)
#2A7DE8
Tritanopia (blue-blind)
#4F8CA3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7971eb;
/* rgb */ color: rgb(121, 113, 235);
/* oklch */ color: oklch(61.6% 0.178 282.8);
Tailwind
colors: {
  custom: {
    50: '#a79af2',
    500: '#7971eb',
    950: '#000000',
  },
}
SCSS
$custom: #7971eb;
$custom-light: #a79af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7971eb",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 243.934,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61636,
    "c": 0.17814,
    "h": 282.8
  },
  "luminance": 0.21873
}

Semantic roles & 50–950 ramp

primary
#7971EB
secondary
#ECEEC9
accent
#D70ECA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7971EB

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

Preview Lab → · Contrast checker → · Palette generator →

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