#7971DC#7971DC

#7971DC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.7% C 0.158 H 284.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7971DC
RGBrgb(121, 113, 220)
HSLhsl(244, 60%, 65%)
HSVhsv(244, 49%, 86%)
CMYKcmyk(45%, 48.6%, 0%, 13.7%)
CIE-LABlab(52.99, 30.09, -53.95)
CIE-LCHlch(52.99, 61.77, 299.15°)
OKLaboklab(60.68% 0.0383 -0.1532)
OKLCHoklch(60.68% 0.158 284)
XYZxyz(26.7048, 21.0413, 70.3506)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971DC #D4DC71
analogous
#719EDC #7971DC #AE71DC
triadic
#7971DC #DC7971 #71DC79
tetradic
#7971DC #DC719E #D4DC71 #71DCAE
square
#7971DC #DC719E #D4DC71 #71DCAE
split-complementary
#7971DC #DCAE71 #9EDC71
monochromatic
#332AA9 #4B40D0 #7971DC #A7A2E8 #D6D3F4

Accessibility & contrast

On white

4.03
#7971DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7971DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971DC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971DC#FFFFFF#000000##000000
##7971DC1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4382E0
Deuteranopia (green-blind)
#3F7BDA
Tritanopia (blue-blind)
#59889C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7971dc;
/* rgb */ color: rgb(121, 113, 220);
/* oklch */ color: oklch(60.7% 0.158 284.0);
Tailwind
colors: {
  custom: {
    50: '#a59ae7',
    500: '#7971dc',
    950: '#000000',
  },
}
SCSS
$custom: #7971dc;
$custom-light: #a59ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7971dc",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 244.486,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60676,
    "c": 0.1579,
    "h": 284
  },
  "luminance": 0.21043
}

Semantic roles & 50–950 ramp

primary
#7971DC
secondary
#E4E6C2
accent
#C81DBB
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7971DC

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

Preview Lab → · Contrast checker → · Palette generator →

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