#AA1FA7#AA1FA7

#AA1FA7 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.7% C 0.221 H 329.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AA1FA7
RGBrgb(170, 31, 167)
HSLhsl(301, 69%, 39%)
HSVhsv(301, 82%, 67%)
CMYKcmyk(0%, 81.8%, 1.8%, 33.3%)
CIE-LABlab(41.72, 67.44, -40.88)
CIE-LCHlch(41.72, 78.86, 328.77°)
OKLaboklab(52.71% 0.1898 -0.1133)
OKLCHoklch(52.71% 0.221 329.2)
XYZxyz(24.0424, 12.3179, 37.6630)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1FA7 #1FAA22
analogous
#681FAA #AA1FA7 #AA1F62
triadic
#AA1FA7 #A7AA1F #1FA7AA
tetradic
#AA1FA7 #AA681F #1FAA22 #1F62AA
square
#AA1FA7 #AA681F #1FAA22 #1F62AA
split-complementary
#AA1FA7 #62AA1F #1FAA68
monochromatic
#420C41 #761674 #AA1FA7 #D92DD5 #E261DF

Accessibility & contrast

On white

6.06
#AA1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AA1FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA1FA7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1FA7#FFFFFF#000000##FFFFFF
##AA1FA71.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#4C69A4
Tritanopia (blue-blind)
#B03765
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa1fa7;
/* rgb */ color: rgb(170, 31, 167);
/* oklch */ color: oklch(52.7% 0.221 329.2);
Tailwind
colors: {
  custom: {
    50: '#c76ec2',
    500: '#aa1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #aa1fa7;
$custom-light: #c76ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1fa7",
  "rgb": {
    "r": 170,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 301.295,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.22101,
    "h": 329.2
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#AA1FA7
secondary
#5EC760
accent
#EC403C
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140812
muted
#827B81

Preview Lab

Preview with #AA1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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