#7971CA#7971CA

#7971CA is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.6% C 0.133 H 285.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7971CA
RGBrgb(121, 113, 202)
HSLhsl(245, 46%, 62%)
HSVhsv(245, 44%, 79%)
CMYKcmyk(40.1%, 44.1%, 0%, 20.8%)
CIE-LABlab(51.99, 24.91, -45.33)
CIE-LCHlch(51.99, 51.72, 298.79°)
OKLaboklab(59.6% 0.036 -0.1279)
OKLCHoklch(59.6% 0.133 285.7)
XYZxyz(24.4479, 20.1386, 58.4647)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971CA #C2CA71
analogous
#7196CA #7971CA #A671CA
triadic
#7971CA #CA7971 #71CA79
tetradic
#7971CA #CA7196 #C2CA71 #71CAA6
square
#7971CA #CA7196 #C2CA71 #71CAA6
split-complementary
#7971CA #CAA671 #96CA71
monochromatic
#3C348C #4F45B9 #7971CA #A39EDB #CDCAEB

Accessibility & contrast

On white

4.18
#7971CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#7971CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971CA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971CA#FFFFFF#000000##000000
##7971CA1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#517ECD
Deuteranopia (green-blind)
#4F79C8
Tritanopia (blue-blind)
#628394
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7971ca;
/* rgb */ color: rgb(121, 113, 202);
/* oklch */ color: oklch(59.6% 0.133 285.7);
Tailwind
colors: {
  custom: {
    50: '#a399da',
    500: '#7971ca',
    950: '#000000',
  },
}
SCSS
$custom: #7971ca;
$custom-light: #a399da;
$custom-dark: #000000;
JSON
{
  "hex": "#7971ca",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 245.393,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59596,
    "c": 0.13292,
    "h": 285.7
  },
  "luminance": 0.20139
}

Semantic roles & 50–950 ramp

primary
#7971CA
secondary
#D9DCBB
accent
#B92DAC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7971CA

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

Preview Lab → · Contrast checker → · Palette generator →

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