#7971BE#7971BE

#7971BE is a mid, moderate blue. Relative luminance 0.196; OKLCH L 58.9% C 0.116 H 287.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7971BE
RGBrgb(121, 113, 190)
HSLhsl(246, 37%, 59%)
HSVhsv(246, 41%, 75%)
CMYKcmyk(36.3%, 40.5%, 0%, 25.5%)
CIE-LABlab(51.37, 21.55, -39.44)
CIE-LCHlch(51.37, 44.94, 298.65°)
OKLaboklab(58.92% 0.0339 -0.1108)
OKLCHoklch(58.92% 0.116 287)
XYZxyz(23.0820, 19.5922, 51.2707)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971BE #B6BE71
analogous
#7190BE #7971BE #A071BE
triadic
#7971BE #BE7971 #71BE79
tetradic
#7971BE #BE7190 #B6BE71 #71BEA0
square
#7971BE #BE7190 #B6BE71 #71BEA0
split-complementary
#7971BE #BEA071 #90BE71
monochromatic
#40397C #554CA6 #7971BE #A19BD1 #C8C5E4

Accessibility & contrast

On white

4.27
#7971BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7971BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971BE
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971BE#FFFFFF#000000##000000
##7971BE1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#587CC1
Deuteranopia (green-blind)
#5778BC
Tritanopia (blue-blind)
#67808E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7971be;
/* rgb */ color: rgb(121, 113, 190);
/* oklch */ color: oklch(58.9% 0.116 287.0);
Tailwind
colors: {
  custom: {
    50: '#a299d2',
    500: '#7971be',
    950: '#000000',
  },
}
SCSS
$custom: #7971be;
$custom-light: #a299d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7971be",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 246.234,
    "s": 37.198,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58922,
    "c": 0.11584,
    "h": 287
  },
  "luminance": 0.19593
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7971BE

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

Preview Lab → · Contrast checker → · Palette generator →

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