#A71F9E#A71F9E

#A71F9E is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.213 H 331.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#A71F9E
RGBrgb(167, 31, 158)
HSLhsl(304, 69%, 39%)
HSVhsv(304, 81%, 65%)
CMYKcmyk(0%, 81.4%, 5.4%, 34.5%)
CIE-LABlab(40.68, 65.44, -37.16)
CIE-LCHlch(40.68, 75.26, 330.41°)
OKLaboklab(51.71% 0.1869 -0.1026)
OKLCHoklch(51.71% 0.213 331.2)
XYZxyz(22.5979, 11.6660, 33.4027)
Luminance0.1166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F9E #1FA728
analogous
#6C1FA7 #A71F9E #A71F5A
triadic
#A71F9E #9EA71F #1F9EA7
tetradic
#A71F9E #A76C1F #1FA728 #1F5AA7
square
#A71F9E #A76C1F #1FA728 #1F5AA7
split-complementary
#A71F9E #5AA71F #1FA76C
monochromatic
#400C3C #73156D #A71F9E #D82BCC #E15FD9

Accessibility & contrast

On white

6.30
#A71F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A71F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A71F9E
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F9E#FFFFFF#000000##FFFFFF
##A71F9E1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B54A1
Deuteranopia (green-blind)
#4E669B
Tritanopia (blue-blind)
#AE335F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a71f9e;
/* rgb */ color: rgb(167, 31, 158);
/* oklch */ color: oklch(51.7% 0.213 331.2);
Tailwind
colors: {
  custom: {
    50: '#c56dbb',
    500: '#a71f9e',
    950: '#000000',
  },
}
SCSS
$custom: #a71f9e;
$custom-light: #c56dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f9e",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 303.971,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51706,
    "c": 0.21321,
    "h": 331.2
  },
  "luminance": 0.11664
}

Semantic roles & 50–950 ramp

primary
#A71F9E
secondary
#5CC663
accent
#EC483C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A71F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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