#AA1FA6#AA1FA6

#AA1FA6 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.220 H 329.5°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AA1FA6
RGBrgb(170, 31, 166)
HSLhsl(302, 69%, 39%)
HSVhsv(302, 82%, 67%)
CMYKcmyk(0%, 81.8%, 2.4%, 33.3%)
CIE-LABlab(41.66, 67.28, -40.38)
CIE-LCHlch(41.66, 78.46, 329.03°)
OKLaboklab(52.65% 0.1898 -0.1118)
OKLCHoklch(52.65% 0.22 329.5)
XYZxyz(23.9503, 12.2811, 37.1781)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1FA6 #1FAA23
analogous
#691FAA #AA1FA6 #AA1F60
triadic
#AA1FA6 #A6AA1F #1FA6AA
tetradic
#AA1FA6 #AA691F #1FAA23 #1F60AA
square
#AA1FA6 #AA691F #1FAA23 #1F60AA
split-complementary
#AA1FA6 #60AA1F #1FAA69
monochromatic
#420C41 #761673 #AA1FA6 #D92DD4 #E261DF

Accessibility & contrast

On white

6.08
#AA1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AA1FA6
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1FA6#FFFFFF#000000##FFFFFF
##AA1FA61.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#4C69A3
Tritanopia (blue-blind)
#B03664
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa1fa6;
/* rgb */ color: rgb(170, 31, 166);
/* oklch */ color: oklch(52.6% 0.220 329.5);
Tailwind
colors: {
  custom: {
    50: '#c76ec1',
    500: '#aa1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #aa1fa6;
$custom-light: #c76ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1fa6",
  "rgb": {
    "r": 170,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 301.727,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52647,
    "c": 0.22029,
    "h": 329.5
  },
  "luminance": 0.12279
}

Semantic roles & 50–950 ramp

primary
#AA1FA6
secondary
#5EC761
accent
#EC413C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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