#A71F98#A71F98

#A71F98 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.209 H 333.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A71F98
RGBrgb(167, 31, 152)
HSLhsl(307, 69%, 39%)
HSVhsv(307, 81%, 65%)
CMYKcmyk(0%, 81.4%, 9%, 34.5%)
CIE-LABlab(40.35, 64.54, -34.06)
CIE-LCHlch(40.35, 72.97, 332.18°)
OKLaboklab(51.37% 0.1869 -0.0936)
OKLCHoklch(51.37% 0.209 333.4)
XYZxyz(22.0940, 11.4644, 30.7489)
Luminance0.1146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F98 #1FA72E
analogous
#721FA7 #A71F98 #A71F54
triadic
#A71F98 #98A71F #1F98A7
tetradic
#A71F98 #A7721F #1FA72E #1F54A7
square
#A71F98 #A7721F #1FA72E #1F54A7
split-complementary
#A71F98 #54A71F #1FA772
monochromatic
#400C3A #731569 #A71F98 #D82BC5 #E15FD3

Accessibility & contrast

On white

6.38
#A71F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A71F98
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F98#FFFFFF#000000##FFFFFF
##A71F981.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18539B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#AF2F5C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a71f98;
/* rgb */ color: rgb(167, 31, 152);
/* oklch */ color: oklch(51.4% 0.209 333.4);
Tailwind
colors: {
  custom: {
    50: '#c56db7',
    500: '#a71f98',
    950: '#000000',
  },
}
SCSS
$custom: #a71f98;
$custom-light: #c56db7;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f98",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 306.618,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.20898,
    "h": 333.4
  },
  "luminance": 0.11462
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A71F98

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

Preview Lab → · Contrast checker → · Palette generator →

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