#A71F9D#A71F9D

#A71F9D is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.212 H 331.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#A71F9D
RGBrgb(167, 31, 157)
HSLhsl(304, 69%, 39%)
HSVhsv(304, 81%, 65%)
CMYKcmyk(0%, 81.4%, 6%, 34.5%)
CIE-LABlab(40.62, 65.29, -36.65)
CIE-LCHlch(40.62, 74.87, 330.69°)
OKLaboklab(51.65% 0.1869 -0.1011)
OKLCHoklch(51.65% 0.213 331.6)
XYZxyz(22.5122, 11.6317, 32.9512)
Luminance0.1163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F9D #1FA729
analogous
#6D1FA7 #A71F9D #A71F59
triadic
#A71F9D #9DA71F #1F9DA7
tetradic
#A71F9D #A76D1F #1FA729 #1F59A7
square
#A71F9D #A76D1F #1FA729 #1F59A7
split-complementary
#A71F9D #59A71F #1FA76D
monochromatic
#400C3C #73156C #A71F9D #D82BCB #E15FD8

Accessibility & contrast

On white

6.31
#A71F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A71F9D
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F9D#FFFFFF#000000##FFFFFF
##A71F9D1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D54A0
Deuteranopia (green-blind)
#4E669A
Tritanopia (blue-blind)
#AE325F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a71f9d;
/* rgb */ color: rgb(167, 31, 157);
/* oklch */ color: oklch(51.6% 0.212 331.6);
Tailwind
colors: {
  custom: {
    50: '#c56dba',
    500: '#a71f9d',
    950: '#000000',
  },
}
SCSS
$custom: #a71f9d;
$custom-light: #c56dba;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f9d",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 304.412,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51649,
    "c": 0.2125,
    "h": 331.6
  },
  "luminance": 0.1163
}

Semantic roles & 50–950 ramp

primary
#A71F9D
secondary
#5CC664
accent
#EC493C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A71F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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