#7971CB#7971CB

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

Color values

HEX#7971CB
RGBrgb(121, 113, 203)
HSLhsl(245, 46%, 62%)
HSVhsv(245, 44%, 80%)
CMYKcmyk(40.4%, 44.3%, 0%, 20.4%)
CIE-LABlab(52.05, 25.19, -45.81)
CIE-LCHlch(52.05, 52.28, 298.81°)
OKLaboklab(59.65% 0.0362 -0.1294)
OKLCHoklch(59.65% 0.134 285.6)
XYZxyz(24.5667, 20.1861, 59.0902)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971CB #C3CB71
analogous
#7196CB #7971CB #A671CB
triadic
#7971CB #CB7971 #71CB79
tetradic
#7971CB #CB7196 #C3CB71 #71CBA6
square
#7971CB #CB7196 #C3CB71 #71CBA6
split-complementary
#7971CB #CBA671 #96CB71
monochromatic
#3C348E #4F44BB #7971CB #A39EDB #CECBEC

Accessibility & contrast

On white

4.17
#7971CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7971CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971CB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971CB#FFFFFF#000000##000000
##7971CB1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#507FCE
Deuteranopia (green-blind)
#4E7AC9
Tritanopia (blue-blind)
#618394
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7971cb;
/* rgb */ color: rgb(121, 113, 203);
/* oklch */ color: oklch(59.7% 0.134 285.6);
Tailwind
colors: {
  custom: {
    50: '#a399db',
    500: '#7971cb',
    950: '#000000',
  },
}
SCSS
$custom: #7971cb;
$custom-light: #a399db;
$custom-dark: #000000;
JSON
{
  "hex": "#7971cb",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 245.333,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59654,
    "c": 0.13433,
    "h": 285.6
  },
  "luminance": 0.20187
}

Semantic roles & 50–950 ramp

primary
#7971CB
secondary
#DADCBB
accent
#BA2CAD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7971CB

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

Preview Lab → · Contrast checker → · Palette generator →

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