#7971CC#7971CC

#7971CC is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.7% C 0.136 H 285.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7971CC
RGBrgb(121, 113, 204)
HSLhsl(245, 47%, 62%)
HSVhsv(245, 45%, 80%)
CMYKcmyk(40.7%, 44.6%, 0%, 20%)
CIE-LABlab(52.10, 25.48, -46.30)
CIE-LCHlch(52.10, 52.84, 298.82°)
OKLaboklab(59.71% 0.0363 -0.1308)
OKLCHoklch(59.71% 0.136 285.5)
XYZxyz(24.6863, 20.2339, 59.7199)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971CC #C4CC71
analogous
#7197CC #7971CC #A771CC
triadic
#7971CC #CC7971 #71CC79
tetradic
#7971CC #CC7197 #C4CC71 #71CCA7
square
#7971CC #CC7197 #C4CC71 #71CCA7
split-complementary
#7971CC #CCA771 #97CC71
monochromatic
#3B338F #4F44BC #7971CC #A39EDC #CECBEC

Accessibility & contrast

On white

4.16
#7971CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7971CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971CC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971CC#FFFFFF#000000##000000
##7971CC1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#507FCF
Deuteranopia (green-blind)
#4D7ACA
Tritanopia (blue-blind)
#618395
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7971cc;
/* rgb */ color: rgb(121, 113, 204);
/* oklch */ color: oklch(59.7% 0.136 285.5);
Tailwind
colors: {
  custom: {
    50: '#a399dc',
    500: '#7971cc',
    950: '#000000',
  },
}
SCSS
$custom: #7971cc;
$custom-light: #a399dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7971cc",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 245.275,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59712,
    "c": 0.13574,
    "h": 285.5
  },
  "luminance": 0.20235
}

Semantic roles & 50–950 ramp

primary
#7971CC
secondary
#DADDBC
accent
#BA2BAE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7971CC

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

Preview Lab → · Contrast checker → · Palette generator →

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