#AF2AA1#AF2AA1

#AF2AA1 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.209 H 332.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA1
RGBrgb(175, 42, 161)
HSLhsl(306, 61%, 43%)
HSVhsv(306, 76%, 69%)
CMYKcmyk(0%, 76%, 8%, 31.4%)
CIE-LABlab(43.28, 64.59, -34.76)
CIE-LCHlch(43.28, 73.35, 331.71°)
OKLaboklab(53.88% 0.1863 -0.0955)
OKLCHoklch(53.88% 0.209 332.9)
XYZxyz(24.9403, 13.3452, 34.9736)
Luminance0.1334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA1 #2AAF38
analogous
#7B2AAF #AF2AA1 #AF2A5E
triadic
#AF2AA1 #A1AF2A #2AA1AF
tetradic
#AF2AA1 #AF7B2A #2AAF38 #2A5EAF
square
#AF2AA1 #AF7B2A #2AAF38 #2A5EAF
split-complementary
#AF2AA1 #5EAF2A #2AAF7B
monochromatic
#4C1246 #7E1E74 #AF2AA1 #D244C3 #DE75D3

Accessibility & contrast

On white

5.72
#AF2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF2AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA1
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA1#FFFFFF#000000##FFFFFF
##AF2AA11.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235AA4
Deuteranopia (green-blind)
#576D9E
Tritanopia (blue-blind)
#B73964
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2aa1;
/* rgb */ color: rgb(175, 42, 161);
/* oklch */ color: oklch(53.9% 0.209 332.9);
Tailwind
colors: {
  custom: {
    50: '#cb72bd',
    500: '#af2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa1;
$custom-light: #cb72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa1",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 306.316,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53878,
    "c": 0.20934,
    "h": 332.9
  },
  "luminance": 0.13343
}

Semantic roles & 50–950 ramp

primary
#AF2AA1
secondary
#6FC678
accent
#E45443
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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