#A71F8D#A71F8D

#A71F8D is a mid, highly saturated pink. Relative luminance 0.111; OKLCH L 50.8% C 0.202 H 337.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#A71F8D
RGBrgb(167, 31, 141)
HSLhsl(311, 69%, 39%)
HSVhsv(311, 81%, 65%)
CMYKcmyk(0%, 81.4%, 15.6%, 34.5%)
CIE-LABlab(39.78, 62.95, -28.26)
CIE-LCHlch(39.78, 69.00, 335.83°)
OKLaboklab(50.78% 0.1863 -0.0769)
OKLCHoklch(50.78% 0.202 337.6)
XYZxyz(21.2345, 11.1206, 26.2223)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F8D #1FA739
analogous
#7D1FA7 #A71F8D #A71F49
triadic
#A71F8D #8DA71F #1F8DA7
tetradic
#A71F8D #A77D1F #1FA739 #1F49A7
square
#A71F8D #A77D1F #1FA739 #1F49A7
split-complementary
#A71F8D #49A71F #1FA77D
monochromatic
#400C36 #731561 #A71F8D #D82BB7 #E15FC8

Accessibility & contrast

On white

6.51
#A71F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#A71F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A71F8D
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F8D#FFFFFF#000000##FFFFFF
##A71F8D1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255190
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#B02956
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a71f8d;
/* rgb */ color: rgb(167, 31, 141);
/* oklch */ color: oklch(50.8% 0.202 337.6);
Tailwind
colors: {
  custom: {
    50: '#c56cae',
    500: '#a71f8d',
    950: '#000000',
  },
}
SCSS
$custom: #a71f8d;
$custom-light: #c56cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f8d",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 311.471,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50775,
    "c": 0.20152,
    "h": 337.6
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#A71F8D
secondary
#5CC670
accent
#EC5E3C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A71F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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