#A71F97#A71F97

#A71F97 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.208 H 333.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#A71F97
RGBrgb(167, 31, 151)
HSLhsl(307, 69%, 39%)
HSVhsv(307, 81%, 65%)
CMYKcmyk(0%, 81.4%, 9.6%, 34.5%)
CIE-LABlab(40.30, 64.39, -33.54)
CIE-LCHlch(40.30, 72.60, 332.49°)
OKLaboklab(51.31% 0.1868 -0.0921)
OKLCHoklch(51.31% 0.208 333.8)
XYZxyz(22.0125, 11.4318, 30.3194)
Luminance0.1143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F97 #1FA72F
analogous
#731FA7 #A71F97 #A71F53
triadic
#A71F97 #97A71F #1F97A7
tetradic
#A71F97 #A7731F #1FA72F #1F53A7
square
#A71F97 #A7731F #1FA72F #1F53A7
split-complementary
#A71F97 #53A71F #1FA773
monochromatic
#400C3A #731568 #A71F97 #D82BC3 #E15FD2

Accessibility & contrast

On white

6.39
#A71F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A71F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A71F97
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F97#FFFFFF#000000##FFFFFF
##A71F971.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19539A
Deuteranopia (green-blind)
#516694
Tritanopia (blue-blind)
#AF2F5B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a71f97;
/* rgb */ color: rgb(167, 31, 151);
/* oklch */ color: oklch(51.3% 0.208 333.8);
Tailwind
colors: {
  custom: {
    50: '#c56db6',
    500: '#a71f97',
    950: '#000000',
  },
}
SCSS
$custom: #a71f97;
$custom-light: #c56db6;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f97",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 307.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51311,
    "c": 0.20829,
    "h": 333.8
  },
  "luminance": 0.1143
}

Semantic roles & 50–950 ramp

primary
#A71F97
secondary
#5CC668
accent
#EC513C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A71F97

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

Preview Lab → · Contrast checker → · Palette generator →

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