#AA1F8E#AA1F8E

#AA1F8E is a mid, highly saturated pink. Relative luminance 0.115; OKLCH L 51.3% C 0.204 H 338.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AA1F8E
RGBrgb(170, 31, 142)
HSLhsl(312, 69%, 39%)
HSVhsv(312, 82%, 67%)
CMYKcmyk(0%, 81.8%, 16.5%, 33.3%)
CIE-LABlab(40.38, 63.75, -27.89)
CIE-LCHlch(40.38, 69.59, 336.37°)
OKLaboklab(51.32% 0.1892 -0.0758)
OKLCHoklch(51.32% 0.204 338.2)
XYZxyz(21.9506, 11.4812, 26.6460)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA1F8E #1FAA3B
analogous
#801FAA #AA1F8E #AA1F49
triadic
#AA1F8E #8EAA1F #1F8EAA
tetradic
#AA1F8E #AA801F #1FAA3B #1F49AA
square
#AA1F8E #AA801F #1FAA3B #1F49AA
split-complementary
#AA1F8E #49AA1F #1FAA80
monochromatic
#420C38 #761663 #AA1F8E #D92DB6 #E261C8

Accessibility & contrast

On white

6.37
#AA1F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AA1F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA1F8E
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA1F8E#FFFFFF#000000##FFFFFF
##AA1F8E1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#58678B
Tritanopia (blue-blind)
#B42856
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #aa1f8e;
/* rgb */ color: rgb(170, 31, 142);
/* oklch */ color: oklch(51.3% 0.204 338.2);
Tailwind
colors: {
  custom: {
    50: '#c76daf',
    500: '#aa1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #aa1f8e;
$custom-light: #c76daf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa1f8e",
  "rgb": {
    "r": 170,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 312.086,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.20379,
    "h": 338.2
  },
  "luminance": 0.11479
}

Semantic roles & 50–950 ramp

primary
#AA1F8E
secondary
#5EC773
accent
#EC5F3C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AA1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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