#972271#972271

#972271 is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.9% C 0.171 H 344.4°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#972271
RGBrgb(151, 34, 113)
HSLhsl(319, 63%, 36%)
HSVhsv(319, 77%, 59%)
CMYKcmyk(0%, 77.5%, 25.2%, 40.8%)
CIE-LABlab(35.82, 54.50, -17.24)
CIE-LCHlch(35.82, 57.16, 342.45°)
OKLaboklab(46.95% 0.1649 -0.046)
OKLCHoklch(46.95% 0.171 344.4)
XYZxyz(16.3158, 8.9174, 16.4816)
Luminance0.0892 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972271 #229748
analogous
#832297 #972271 #972237
triadic
#972271 #719722 #227197
tetradic
#972271 #978322 #229748 #223797
square
#972271 #978322 #229748 #223797
split-complementary
#972271 #379722 #229783
monochromatic
#330C26 #65174C #972271 #C92D96 #DA5AB0

Accessibility & contrast

On white

7.55
#972271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#972271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #972271
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972271#FFFFFF#000000##FFFFFF
##9722711.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#555B6E
Tritanopia (blue-blind)
#A12147
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #972271;
/* rgb */ color: rgb(151, 34, 113);
/* oklch */ color: oklch(46.9% 0.171 344.4);
Tailwind
colors: {
  custom: {
    50: '#ba6a9a',
    500: '#972271',
    950: '#000000',
  },
}
SCSS
$custom: #972271;
$custom-light: #ba6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#972271",
  "rgb": {
    "r": 151,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 319.487,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46948,
    "c": 0.1712,
    "h": 344.4
  },
  "luminance": 0.08916
}

Semantic roles & 50–950 ramp

primary
#972271
secondary
#57BE78
accent
#E67742
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #972271

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

Preview Lab → · Contrast checker → · Palette generator →

#972271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva