#7971BD#7971BD

#7971BD is a mid, moderate blue. Relative luminance 0.195; OKLCH L 58.9% C 0.114 H 287.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7971BD
RGBrgb(121, 113, 189)
HSLhsl(246, 37%, 59%)
HSVhsv(246, 40%, 74%)
CMYKcmyk(36%, 40.2%, 0%, 25.9%)
CIE-LABlab(51.32, 21.27, -38.94)
CIE-LCHlch(51.32, 44.37, 298.65°)
OKLaboklab(58.87% 0.0338 -0.1093)
OKLCHoklch(58.87% 0.114 287.2)
XYZxyz(22.9731, 19.5487, 50.6971)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971BD #B5BD71
analogous
#718FBD #7971BD #9F71BD
triadic
#7971BD #BD7971 #71BD79
tetradic
#7971BD #BD718F #B5BD71 #71BD9F
square
#7971BD #BD718F #B5BD71 #71BD9F
split-complementary
#7971BD #BD9F71 #8FBD71
monochromatic
#40397B #564CA4 #7971BD #A09BD0 #C8C5E4

Accessibility & contrast

On white

4.28
#7971BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#7971BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971BD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971BD#FFFFFF#000000##000000
##7971BD1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#587CC0
Deuteranopia (green-blind)
#5778BB
Tritanopia (blue-blind)
#677F8E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7971bd;
/* rgb */ color: rgb(121, 113, 189);
/* oklch */ color: oklch(58.9% 0.114 287.2);
Tailwind
colors: {
  custom: {
    50: '#a299d1',
    500: '#7971bd',
    950: '#000000',
  },
}
SCSS
$custom: #7971bd;
$custom-light: #a299d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7971bd",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 246.316,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58868,
    "c": 0.11441,
    "h": 287.2
  },
  "luminance": 0.19549
}

Semantic roles & 50–950 ramp

primary
#7971BD
secondary
#D1D4B6
accent
#CD5BC1
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7971BD

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

Preview Lab → · Contrast checker → · Palette generator →

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