#AA2FAB#AA2FAB

#AA2FAB is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.209 H 327.7°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AA2FAB
RGBrgb(170, 47, 171)
HSLhsl(300, 57%, 43%)
HSVhsv(300, 73%, 67%)
CMYKcmyk(0.6%, 72.5%, 0%, 32.9%)
CIE-LABlab(43.54, 63.49, -40.37)
CIE-LCHlch(43.54, 75.24, 327.55°)
OKLaboklab(54.08% 0.1767 -0.1119)
OKLCHoklch(54.08% 0.209 327.7)
XYZxyz(24.9444, 13.5211, 39.8162)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2FAB #30AB2F
analogous
#6C2FAB #AA2FAB #AB2F6E
triadic
#AA2FAB #ABAA2F #2FABAA
tetradic
#AA2FAB #AB6C2F #30AB2F #2F6EAB
square
#AA2FAB #AB6C2F #30AB2F #2F6EAB
split-complementary
#AA2FAB #6EAB2F #2FAB6C
monochromatic
#4B154B #7A227B #AA2FAB #CC4ACD #DA7ADA

Accessibility & contrast

On white

5.67
#AA2FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AA2FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2FAB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2FAB#FFFFFF#000000##FFFFFF
##AA2FAB1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAE
Deuteranopia (green-blind)
#506CA8
Tritanopia (blue-blind)
#AF426A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa2fab;
/* rgb */ color: rgb(170, 47, 171);
/* oklch */ color: oklch(54.1% 0.209 327.7);
Tailwind
colors: {
  custom: {
    50: '#c774c4',
    500: '#aa2fab',
    950: '#000000',
  },
}
SCSS
$custom: #aa2fab;
$custom-light: #c774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2fab",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 299.516,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54078,
    "c": 0.20911,
    "h": 327.7
  },
  "luminance": 0.13519
}

Semantic roles & 50–950 ramp

primary
#AA2FAB
secondary
#74C373
accent
#E04849
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #AA2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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