#AA1B9D#AA1B9D

#AA1B9D is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.217 H 332.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AA1B9D
RGBrgb(170, 27, 157)
HSLhsl(305, 73%, 39%)
HSVhsv(305, 84%, 67%)
CMYKcmyk(0%, 84.1%, 7.6%, 33.3%)
CIE-LABlab(40.84, 66.82, -36.27)
CIE-LCHlch(40.84, 76.03, 331.51°)
OKLaboklab(51.9% 0.1926 -0.0999)
OKLCHoklch(51.9% 0.217 332.6)
XYZxyz(23.0554, 11.7663, 32.9486)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1B9D #1BAA28
analogous
#6F1BAA #AA1B9D #AA1B55
triadic
#AA1B9D #9DAA1B #1B9DAA
tetradic
#AA1B9D #AA6F1B #1BAA28 #1B55AA
square
#AA1B9D #AA6F1B #1BAA28 #1B55AA
split-complementary
#AA1B9D #55AA1B #1BAA6F
monochromatic
#400A3B #75136C #AA1B9D #DC26CC #E55BD8

Accessibility & contrast

On white

6.26
#AA1B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AA1B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA1B9D
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1B9D#FFFFFF#000000##FFFFFF
##AA1B9D1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C54A0
Deuteranopia (green-blind)
#50679A
Tritanopia (blue-blind)
#B22F5E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #aa1b9d;
/* rgb */ color: rgb(170, 27, 157);
/* oklch */ color: oklch(51.9% 0.217 332.6);
Tailwind
colors: {
  custom: {
    50: '#c76cba',
    500: '#aa1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #aa1b9d;
$custom-light: #c76cba;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1b9d",
  "rgb": {
    "r": 170,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 305.455,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51903,
    "c": 0.21694,
    "h": 332.6
  },
  "luminance": 0.11764
}

Semantic roles & 50–950 ramp

primary
#AA1B9D
secondary
#58C962
accent
#EF4939
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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