#AA2F8B#AA2F8B

#AA2F8B is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.4% C 0.186 H 339.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AA2F8B
RGBrgb(170, 47, 139)
HSLhsl(315, 57%, 43%)
HSVhsv(315, 72%, 67%)
CMYKcmyk(0%, 72.4%, 18.2%, 33.3%)
CIE-LABlab(41.92, 58.54, -23.67)
CIE-LCHlch(41.92, 63.15, 337.99°)
OKLaboklab(52.38% 0.1743 -0.0639)
OKLCHoklch(52.38% 0.186 339.9)
XYZxyz(22.2549, 12.4453, 25.6512)
Luminance0.1244 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F8B #2FAA4E
analogous
#8C2FAA #AA2F8B #AA2F4D
triadic
#AA2F8B #8BAA2F #2F8BAA
tetradic
#AA2F8B #AA8C2F #2FAA4E #2F4DAA
square
#AA2F8B #AA8C2F #2FAA4E #2F4DAA
split-complementary
#AA2F8B #4DAA2F #2FAA8C
monochromatic
#4A143D #7A2264 #AA2F8B #CD49AC #DA79C2

Accessibility & contrast

On white

6.02
#AA2F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AA2F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F8B
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F8B#FFFFFF#000000##FFFFFF
##AA2F8B1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568E
Deuteranopia (green-blind)
#5F6A88
Tritanopia (blue-blind)
#B43359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #aa2f8b;
/* rgb */ color: rgb(170, 47, 139);
/* oklch */ color: oklch(52.4% 0.186 339.9);
Tailwind
colors: {
  custom: {
    50: '#c773ad',
    500: '#aa2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f8b;
$custom-light: #c773ad;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f8b",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 315.122,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52382,
    "c": 0.18568,
    "h": 339.9
  },
  "luminance": 0.12443
}

Semantic roles & 50–950 ramp

primary
#AA2F8B
secondary
#72C287
accent
#E06E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AA2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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