#AF2A97#AF2A97

#AF2A97 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.3% C 0.202 H 336.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF2A97
RGBrgb(175, 42, 151)
HSLhsl(311, 61%, 43%)
HSVhsv(311, 76%, 69%)
CMYKcmyk(0%, 76%, 13.7%, 31.4%)
CIE-LABlab(42.77, 63.11, -29.55)
CIE-LCHlch(42.77, 69.68, 334.91°)
OKLaboklab(53.35% 0.1856 -0.0805)
OKLCHoklch(53.35% 0.202 336.6)
XYZxyz(24.0935, 13.0065, 30.5138)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A97 #2AAF42
analogous
#842AAF #AF2A97 #AF2A55
triadic
#AF2A97 #97AF2A #2A97AF
tetradic
#AF2A97 #AF842A #2AAF42 #2A55AF
square
#AF2A97 #AF842A #2AAF42 #2A55AF
split-complementary
#AF2A97 #55AF2A #2AAF84
monochromatic
#4C1242 #7E1E6C #AF2A97 #D244B8 #DE75CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2A97#FFFFFF#000000##FFFFFF
##AF2A971.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)
#2D589A
Deuteranopia (green-blind)
#5C6C94
Tritanopia (blue-blind)
#B8335E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2a97;
/* rgb */ color: rgb(175, 42, 151);
/* oklch */ color: oklch(53.3% 0.202 336.6);
Tailwind
colors: {
  custom: {
    50: '#cb72b6',
    500: '#af2a97',
    950: '#000000',
  },
}
SCSS
$custom: #af2a97;
$custom-light: #cb72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a97",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 310.827,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5335,
    "c": 0.20232,
    "h": 336.6
  },
  "luminance": 0.13004
}

Semantic roles & 50–950 ramp

primary
#AF2A97
secondary
#6FC67F
accent
#E46043
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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