#AA2FAF#AA2FAF

#AA2FAF is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.212 H 326.3°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AA2FAF
RGBrgb(170, 47, 175)
HSLhsl(298, 58%, 44%)
HSVhsv(298, 73%, 69%)
CMYKcmyk(2.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(43.76, 64.16, -42.38)
CIE-LCHlch(43.76, 76.89, 326.56°)
OKLaboklab(54.31% 0.1766 -0.1177)
OKLCHoklch(54.31% 0.212 326.3)
XYZxyz(25.3315, 13.6759, 41.8546)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2FAF #34AF2F
analogous
#6A2FAF #AA2FAF #AF2F74
triadic
#AA2FAF #AFAA2F #2FAFAA
tetradic
#AA2FAF #AF6A2F #34AF2F #2F74AF
square
#AA2FAF #AF6A2F #34AF2F #2F74AF
split-complementary
#AA2FAF #74AF2F #2FAF6A
monochromatic
#4C154F #7B227F #AA2FAF #CA4CCF #D87CDC

Accessibility & contrast

On white

5.62
#AA2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AA2FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2FAF
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2FAF#FFFFFF#000000##FFFFFF
##AA2FAF1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB3
Deuteranopia (green-blind)
#4D6DAC
Tritanopia (blue-blind)
#AE446D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa2faf;
/* rgb */ color: rgb(170, 47, 175);
/* oklch */ color: oklch(54.3% 0.212 326.3);
Tailwind
colors: {
  custom: {
    50: '#c774c7',
    500: '#aa2faf',
    950: '#000000',
  },
}
SCSS
$custom: #aa2faf;
$custom-light: #c774c7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2faf",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 297.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.21226,
    "h": 326.3
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#AA2FAF
secondary
#78C475
accent
#E1474D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AA2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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