#8A2971#8A2971

#8A2971 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.4% C 0.154 H 339.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8A2971
RGBrgb(138, 41, 113)
HSLhsl(315, 54%, 35%)
HSVhsv(315, 70%, 54%)
CMYKcmyk(0%, 70.3%, 18.1%, 45.9%)
CIE-LABlab(34.36, 48.58, -19.69)
CIE-LCHlch(34.36, 52.42, 337.94°)
OKLaboklab(45.44% 0.1444 -0.0531)
OKLCHoklch(45.44% 0.154 339.8)
XYZxyz(14.2552, 8.1827, 16.4483)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2971 #298A42
analogous
#73298A #8A2971 #8A2940
triadic
#8A2971 #718A29 #29718A
tetradic
#8A2971 #8A7329 #298A42 #29408A
square
#8A2971 #8A7329 #298A42 #29408A
split-complementary
#8A2971 #408A29 #298A73
monochromatic
#2C0D24 #5B1B4A #8A2971 #B93798 #CF5EB2

Accessibility & contrast

On white

7.97
#8A2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2971
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2971#FFFFFF#000000##FFFFFF
##8A29711.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#4D566F
Tritanopia (blue-blind)
#922C49
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2971;
/* rgb */ color: rgb(138, 41, 113);
/* oklch */ color: oklch(45.4% 0.154 339.8);
Tailwind
colors: {
  custom: {
    50: '#af6b9a',
    500: '#8a2971',
    950: '#000000',
  },
}
SCSS
$custom: #8a2971;
$custom-light: #af6b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2971",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 315.464,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.15389,
    "h": 339.8
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#8A2971
secondary
#5AB571
accent
#DE704A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2971

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

Preview Lab → · Contrast checker → · Palette generator →

#8A2971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva