#AA1FA2#AA1FA2

#AA1FA2 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.4% C 0.217 H 330.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AA1FA2
RGBrgb(170, 31, 162)
HSLhsl(303, 69%, 39%)
HSVhsv(303, 82%, 67%)
CMYKcmyk(0%, 81.8%, 4.7%, 33.3%)
CIE-LABlab(41.43, 66.66, -38.34)
CIE-LCHlch(41.43, 76.90, 330.09°)
OKLaboklab(52.41% 0.1899 -0.1059)
OKLCHoklch(52.41% 0.217 330.9)
XYZxyz(23.5891, 12.1366, 35.2756)
Luminance0.1213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1FA2 #1FAA27
analogous
#6D1FAA #AA1FA2 #AA1F5D
triadic
#AA1FA2 #A2AA1F #1FA2AA
tetradic
#AA1FA2 #AA6D1F #1FAA27 #1F5DAA
square
#AA1FA2 #AA6D1F #1FAA27 #1F5DAA
split-complementary
#AA1FA2 #5DAA1F #1FAA6D
monochromatic
#420C3F #761671 #AA1FA2 #D92DCF #E261DB

Accessibility & contrast

On white

6.13
#AA1FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AA1FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA1FA2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1FA2#FFFFFF#000000##FFFFFF
##AA1FA21.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0556A5
Deuteranopia (green-blind)
#4E689F
Tritanopia (blue-blind)
#B13462
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa1fa2;
/* rgb */ color: rgb(170, 31, 162);
/* oklch */ color: oklch(52.4% 0.217 330.9);
Tailwind
colors: {
  custom: {
    50: '#c76ebe',
    500: '#aa1fa2',
    950: '#000000',
  },
}
SCSS
$custom: #aa1fa2;
$custom-light: #c76ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1fa2",
  "rgb": {
    "r": 170,
    "g": 31,
    "b": 162
  },
  "hsl": {
    "h": 303.453,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52413,
    "c": 0.21743,
    "h": 330.9
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#AA1FA2
secondary
#5EC764
accent
#EC463C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA1FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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