#7971CF#7971CF

#7971CF is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.9% C 0.140 H 285.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7971CF
RGBrgb(121, 113, 207)
HSLhsl(245, 49%, 63%)
HSVhsv(245, 45%, 81%)
CMYKcmyk(41.5%, 45.4%, 0%, 18.8%)
CIE-LABlab(52.26, 26.33, -47.75)
CIE-LCHlch(52.26, 54.53, 298.88°)
OKLaboklab(59.89% 0.0367 -0.135)
OKLCHoklch(59.89% 0.14 285.2)
XYZxyz(25.0496, 20.3792, 61.6331)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971CF #C7CF71
analogous
#7198CF #7971CF #A871CF
triadic
#7971CF #CF7971 #71CF79
tetradic
#7971CF #CF7198 #C7CF71 #71CFA8
square
#7971CF #CF7198 #C7CF71 #71CFA8
split-complementary
#7971CF #CFA871 #98CF71
monochromatic
#3A3294 #4E43C0 #7971CF #A49FDE #CFCCEE

Accessibility & contrast

On white

4.14
#7971CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7971CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971CF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971CF#FFFFFF#000000##000000
##7971CF1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7FD2
Deuteranopia (green-blind)
#4B7ACD
Tritanopia (blue-blind)
#608496
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7971cf;
/* rgb */ color: rgb(121, 113, 207);
/* oklch */ color: oklch(59.9% 0.140 285.2);
Tailwind
colors: {
  custom: {
    50: '#a49ade',
    500: '#7971cf',
    950: '#000000',
  },
}
SCSS
$custom: #7971cf;
$custom-light: #a49ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7971cf",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 245.106,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59888,
    "c": 0.13994,
    "h": 285.2
  },
  "luminance": 0.2038
}

Semantic roles & 50–950 ramp

primary
#7971CF
secondary
#DCDFBD
accent
#BD29B0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7971CF

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

Preview Lab → · Contrast checker → · Palette generator →

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