#AA1FA8#AA1FA8

#AA1FA8 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.222 H 328.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AA1FA8
RGBrgb(170, 31, 168)
HSLhsl(301, 69%, 39%)
HSVhsv(301, 82%, 67%)
CMYKcmyk(0%, 81.8%, 1.2%, 33.3%)
CIE-LABlab(41.77, 67.59, -41.39)
CIE-LCHlch(41.77, 79.26, 328.52°)
OKLaboklab(52.77% 0.1897 -0.1147)
OKLCHoklch(52.77% 0.222 328.8)
XYZxyz(24.1352, 12.3551, 38.1518)
Luminance0.1235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1FA8 #1FAA21
analogous
#661FAA #AA1FA8 #AA1F63
triadic
#AA1FA8 #A8AA1F #1FA8AA
tetradic
#AA1FA8 #AA661F #1FAA21 #1F63AA
square
#AA1FA8 #AA661F #1FAA21 #1F63AA
split-complementary
#AA1FA8 #63AA1F #1FAA66
monochromatic
#420C42 #761675 #AA1FA8 #D92DD6 #E261E0

Accessibility & contrast

On white

6.05
#AA1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AA1FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA1FA8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1FA8#FFFFFF#000000##FFFFFF
##AA1FA81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4B69A5
Tritanopia (blue-blind)
#B03865
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #aa1fa8;
/* rgb */ color: rgb(170, 31, 168);
/* oklch */ color: oklch(52.8% 0.222 328.8);
Tailwind
colors: {
  custom: {
    50: '#c76ec2',
    500: '#aa1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #aa1fa8;
$custom-light: #c76ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1fa8",
  "rgb": {
    "r": 170,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 300.863,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52766,
    "c": 0.22173,
    "h": 328.8
  },
  "luminance": 0.12353
}

Semantic roles & 50–950 ramp

primary
#AA1FA8
secondary
#5EC75F
accent
#EC3E3C
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140812
muted
#827B81

Preview Lab

Preview with #AA1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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