#AA2F7B#AA2F7B

#AA2F7B is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.176 H 347.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AA2F7B
RGBrgb(170, 47, 123)
HSLhsl(323, 57%, 43%)
HSVhsv(323, 72%, 67%)
CMYKcmyk(0%, 72.4%, 27.6%, 33.3%)
CIE-LABlab(41.23, 56.39, -14.89)
CIE-LCHlch(41.23, 58.32, 345.20°)
OKLaboklab(51.66% 0.1713 -0.0393)
OKLCHoklch(51.66% 0.176 347.1)
XYZxyz(21.1702, 12.0114, 19.9386)
Luminance0.1201 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F7B #2FAA5E
analogous
#9C2FAA #AA2F7B #AA2F3D
triadic
#AA2F7B #7BAA2F #2F7BAA
tetradic
#AA2F7B #AA9C2F #2FAA5E #2F3DAA
square
#AA2F7B #AA9C2F #2FAA5E #2F3DAA
split-complementary
#AA2F7B #3DAA2F #2FAA9C
monochromatic
#4A1436 #7A2258 #AA2F7B #CD499B #DA79B5

Accessibility & contrast

On white

6.17
#AA2F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AA2F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F7B
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F7B#FFFFFF#000000##FFFFFF
##AA2F7B1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547D
Deuteranopia (green-blind)
#646978
Tritanopia (blue-blind)
#B62B51
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #aa2f7b;
/* rgb */ color: rgb(170, 47, 123);
/* oklch */ color: oklch(51.7% 0.176 347.1);
Tailwind
colors: {
  custom: {
    50: '#c772a1',
    500: '#aa2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f7b;
$custom-light: #c772a1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f7b",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 322.927,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51664,
    "c": 0.17574,
    "h": 347.1
  },
  "luminance": 0.12009
}

Semantic roles & 50–950 ramp

primary
#AA2F7B
secondary
#72C291
accent
#E08248
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AA2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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