#AF2A96#AF2A96

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

Color values

HEX#AF2A96
RGBrgb(175, 42, 150)
HSLhsl(311, 61%, 43%)
HSVhsv(311, 76%, 69%)
CMYKcmyk(0%, 76%, 14.3%, 31.4%)
CIE-LABlab(42.72, 62.96, -29.02)
CIE-LCHlch(42.72, 69.33, 335.25°)
OKLaboklab(53.3% 0.1855 -0.079)
OKLCHoklch(53.3% 0.202 336.9)
XYZxyz(24.0126, 12.9741, 30.0879)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A96 #2AAF43
analogous
#852AAF #AF2A96 #AF2A54
triadic
#AF2A96 #96AF2A #2A96AF
tetradic
#AF2A96 #AF852A #2AAF43 #2A54AF
square
#AF2A96 #AF852A #2AAF43 #2A54AF
split-complementary
#AF2A96 #54AF2A #2AAF85
monochromatic
#4C1241 #7E1E6C #AF2A96 #D244B7 #DE75CA

Accessibility & contrast

On white

5.84
#AF2A96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2A96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A96
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A96#FFFFFF#000000##FFFFFF
##AF2A961.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5899
Deuteranopia (green-blind)
#5C6C93
Tritanopia (blue-blind)
#B8335E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2a96;
/* rgb */ color: rgb(175, 42, 150);
/* oklch */ color: oklch(53.3% 0.202 336.9);
Tailwind
colors: {
  custom: {
    50: '#cb72b5',
    500: '#af2a96',
    950: '#000000',
  },
}
SCSS
$custom: #af2a96;
$custom-light: #cb72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a96",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 311.278,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53299,
    "c": 0.20163,
    "h": 336.9
  },
  "luminance": 0.12972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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