#7971BB#7971BB

#7971BB is a mid, moderate blue. Relative luminance 0.195; OKLCH L 58.8% C 0.112 H 287.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7971BB
RGBrgb(121, 113, 187)
HSLhsl(246, 35%, 59%)
HSVhsv(246, 40%, 73%)
CMYKcmyk(35.3%, 39.6%, 0%, 26.7%)
CIE-LABlab(51.22, 20.72, -37.94)
CIE-LCHlch(51.22, 43.23, 298.64°)
OKLaboklab(58.76% 0.0334 -0.1064)
OKLCHoklch(58.76% 0.112 287.4)
XYZxyz(22.7575, 19.4624, 49.5617)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971BB #B3BB71
analogous
#718EBB #7971BB #9E71BB
triadic
#7971BB #BB7971 #71BB79
tetradic
#7971BB #BB718E #B3BB71 #71BB9E
square
#7971BB #BB718E #B3BB71 #71BB9E
split-complementary
#7971BB #BB9E71 #8EBB71
monochromatic
#403A78 #564DA1 #7971BB #A09ACF #C7C4E3

Accessibility & contrast

On white

4.29
#7971BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7971BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971BB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971BB#FFFFFF#000000##000000
##7971BB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7CBE
Deuteranopia (green-blind)
#5978B9
Tritanopia (blue-blind)
#687F8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7971bb;
/* rgb */ color: rgb(121, 113, 187);
/* oklch */ color: oklch(58.8% 0.112 287.4);
Tailwind
colors: {
  custom: {
    50: '#a299d0',
    500: '#7971bb',
    950: '#000000',
  },
}
SCSS
$custom: #7971bb;
$custom-light: #a299d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7971bb",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 246.486,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5876,
    "c": 0.11153,
    "h": 287.4
  },
  "luminance": 0.19463
}

Semantic roles & 50–950 ramp

primary
#7971BB
secondary
#CFD2B5
accent
#CB5DBF
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7971BB

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

Preview Lab → · Contrast checker → · Palette generator →

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