#AA2F9D#AA2F9D

#AA2F9D is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.3% C 0.198 H 332.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AA2F9D
RGBrgb(170, 47, 157)
HSLhsl(306, 57%, 43%)
HSVhsv(306, 72%, 67%)
CMYKcmyk(0%, 72.4%, 7.6%, 33.3%)
CIE-LABlab(42.79, 61.23, -33.20)
CIE-LCHlch(42.79, 69.65, 331.53°)
OKLaboklab(53.3% 0.1763 -0.0911)
OKLCHoklch(53.3% 0.198 332.7)
XYZxyz(23.6800, 13.0154, 33.1568)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F9D #2FAA3C
analogous
#792FAA #AA2F9D #AA2F60
triadic
#AA2F9D #9DAA2F #2F9DAA
tetradic
#AA2F9D #AA792F #2FAA3C #2F60AA
square
#AA2F9D #AA792F #2FAA3C #2F60AA
split-complementary
#AA2F9D #60AA2F #2FAA79
monochromatic
#4A1444 #7A2271 #AA2F9D #CD49BF #DA79D0

Accessibility & contrast

On white

5.83
#AA2F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AA2F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F9D
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F9D#FFFFFF#000000##FFFFFF
##AA2F9D1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA0
Deuteranopia (green-blind)
#576B9A
Tritanopia (blue-blind)
#B13C63
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2f9d;
/* rgb */ color: rgb(170, 47, 157);
/* oklch */ color: oklch(53.3% 0.198 332.7);
Tailwind
colors: {
  custom: {
    50: '#c774ba',
    500: '#aa2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f9d;
$custom-light: #c774ba;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f9d",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 306.341,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53295,
    "c": 0.19843,
    "h": 332.7
  },
  "luminance": 0.13013
}

Semantic roles & 50–950 ramp

primary
#AA2F9D
secondary
#72C27B
accent
#E05848
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #AA2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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