#A71F8E#A71F8E

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

Color values

HEX#A71F8E
RGBrgb(167, 31, 142)
HSLhsl(311, 69%, 39%)
HSVhsv(311, 81%, 65%)
CMYKcmyk(0%, 81.4%, 15%, 34.5%)
CIE-LABlab(39.83, 63.09, -28.79)
CIE-LCHlch(39.83, 69.35, 335.47°)
OKLaboklab(50.83% 0.1864 -0.0784)
OKLCHoklch(50.83% 0.202 337.2)
XYZxyz(21.3093, 11.1505, 26.6160)
Luminance0.1115 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F8E #1FA738
analogous
#7C1FA7 #A71F8E #A71F4A
triadic
#A71F8E #8EA71F #1F8EA7
tetradic
#A71F8E #A77C1F #1FA738 #1F4AA7
square
#A71F8E #A77C1F #1FA738 #1F4AA7
split-complementary
#A71F8E #4AA71F #1FA77C
monochromatic
#400C36 #731562 #A71F8E #D82BB8 #E15FC9

Accessibility & contrast

On white

6.50
#A71F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A71F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A71F8E
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F8E#FFFFFF#000000##FFFFFF
##A71F8E1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a71f8e;
/* rgb */ color: rgb(167, 31, 142);
/* oklch */ color: oklch(50.8% 0.202 337.2);
Tailwind
colors: {
  custom: {
    50: '#c56daf',
    500: '#a71f8e',
    950: '#000000',
  },
}
SCSS
$custom: #a71f8e;
$custom-light: #c56daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f8e",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 311.029,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50827,
    "c": 0.20219,
    "h": 337.2
  },
  "luminance": 0.11148
}

Semantic roles & 50–950 ramp

primary
#A71F8E
secondary
#5CC66F
accent
#EC5C3C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A71F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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