#A71F9C#A71F9C

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

Color values

HEX#A71F9C
RGBrgb(167, 31, 156)
HSLhsl(305, 69%, 39%)
HSVhsv(305, 81%, 65%)
CMYKcmyk(0%, 81.4%, 6.6%, 34.5%)
CIE-LABlab(40.57, 65.14, -36.13)
CIE-LCHlch(40.57, 74.49, 330.98°)
OKLaboklab(51.59% 0.1869 -0.0996)
OKLCHoklch(51.59% 0.212 332)
XYZxyz(22.4272, 11.5977, 32.5034)
Luminance0.1160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F9C #1FA72A
analogous
#6E1FA7 #A71F9C #A71F58
triadic
#A71F9C #9CA71F #1F9CA7
tetradic
#A71F9C #A76E1F #1FA72A #1F58A7
square
#A71F9C #A76E1F #1FA72A #1F58A7
split-complementary
#A71F9C #58A71F #1FA76E
monochromatic
#400C3C #73156C #A71F9C #D82BCA #E15FD7

Accessibility & contrast

On white

6.33
#A71F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A71F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A71F9C
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F9C#FFFFFF#000000##FFFFFF
##A71F9C1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10549F
Deuteranopia (green-blind)
#4F6699
Tritanopia (blue-blind)
#AE325E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a71f9c;
/* rgb */ color: rgb(167, 31, 156);
/* oklch */ color: oklch(51.6% 0.212 332.0);
Tailwind
colors: {
  custom: {
    50: '#c56db9',
    500: '#a71f9c',
    950: '#000000',
  },
}
SCSS
$custom: #a71f9c;
$custom-light: #c56db9;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f9c",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 304.853,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51592,
    "c": 0.21179,
    "h": 332
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#A71F9C
secondary
#5CC665
accent
#EC4A3C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A71F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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