#7971BF#7971BF

#7971BF is a mid, moderate blue. Relative luminance 0.196; OKLCH L 59.0% C 0.117 H 286.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7971BF
RGBrgb(121, 113, 191)
HSLhsl(246, 38%, 60%)
HSVhsv(246, 41%, 75%)
CMYKcmyk(36.6%, 40.8%, 0%, 25.1%)
CIE-LABlab(51.42, 21.82, -39.93)
CIE-LCHlch(51.42, 45.51, 298.66°)
OKLaboklab(58.98% 0.0341 -0.1122)
OKLCHoklch(58.98% 0.117 286.9)
XYZxyz(23.1917, 19.6361, 51.8483)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971BF #B7BF71
analogous
#7190BF #7971BF #A071BF
triadic
#7971BF #BF7971 #71BF79
tetradic
#7971BF #BF7190 #B7BF71 #71BFA0
square
#7971BF #BF7190 #B7BF71 #71BFA0
split-complementary
#7971BF #BFA071 #90BF71
monochromatic
#3F387D #554BA7 #7971BF #A19BD2 #C9C5E5

Accessibility & contrast

On white

4.26
#7971BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#7971BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971BF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971BF#FFFFFF#000000##000000
##7971BF1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#577DC2
Deuteranopia (green-blind)
#5678BD
Tritanopia (blue-blind)
#66808F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7971bf;
/* rgb */ color: rgb(121, 113, 191);
/* oklch */ color: oklch(59.0% 0.117 286.9);
Tailwind
colors: {
  custom: {
    50: '#a299d2',
    500: '#7971bf',
    950: '#000000',
  },
}
SCSS
$custom: #7971bf;
$custom-light: #a299d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7971bf",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 246.154,
    "s": 37.864,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58977,
    "c": 0.11729,
    "h": 286.9
  },
  "luminance": 0.19637
}

Semantic roles & 50–950 ramp

primary
#7971BF
secondary
#D2D5B7
accent
#CE5AC2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7971BF

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

Preview Lab → · Contrast checker → · Palette generator →

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