#A71F8B#A71F8B

#A71F8B is a mid, highly saturated pink. Relative luminance 0.111; OKLCH L 50.7% C 0.200 H 338.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#A71F8B
RGBrgb(167, 31, 139)
HSLhsl(312, 69%, 39%)
HSVhsv(312, 81%, 65%)
CMYKcmyk(0%, 81.4%, 16.8%, 34.5%)
CIE-LABlab(39.68, 62.67, -27.18)
CIE-LCHlch(39.68, 68.31, 336.55°)
OKLaboklab(50.67% 0.1861 -0.0738)
OKLCHoklch(50.67% 0.2 338.4)
XYZxyz(21.0871, 11.0616, 25.4457)
Luminance0.1106 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F8B #1FA73B
analogous
#7F1FA7 #A71F8B #A71F47
triadic
#A71F8B #8BA71F #1F8BA7
tetradic
#A71F8B #A77F1F #1FA73B #1F47A7
square
#A71F8B #A77F1F #1FA73B #1F47A7
split-complementary
#A71F8B #47A71F #1FA77F
monochromatic
#400C35 #731560 #A71F8B #D82BB4 #E15FC7

Accessibility & contrast

On white

6.54
#A71F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#A71F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A71F8B
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F8B#FFFFFF#000000##FFFFFF
##A71F8B1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27508E
Deuteranopia (green-blind)
#576588
Tritanopia (blue-blind)
#B12755
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a71f8b;
/* rgb */ color: rgb(167, 31, 139);
/* oklch */ color: oklch(50.7% 0.200 338.4);
Tailwind
colors: {
  custom: {
    50: '#c56cad',
    500: '#a71f8b',
    950: '#000000',
  },
}
SCSS
$custom: #a71f8b;
$custom-light: #c56cad;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f8b",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 312.353,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50672,
    "c": 0.20021,
    "h": 338.4
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#A71F8B
secondary
#5CC672
accent
#EC603C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A71F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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