#AF2A72#AF2A72

#AF2A72 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.180 H 352.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#AF2A72
RGBrgb(175, 42, 114)
HSLhsl(328, 61%, 43%)
HSVhsv(328, 76%, 69%)
CMYKcmyk(0%, 76%, 34.9%, 31.4%)
CIE-LABlab(41.20, 58.33, -9.28)
CIE-LCHlch(41.20, 59.07, 350.96°)
OKLaboklab(51.69% 0.1788 -0.0239)
OKLCHoklch(51.69% 0.18 352.4)
XYZxyz(21.5457, 11.9874, 17.0955)
Luminance0.1198 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A72 #2AAF67
analogous
#AA2AAF #AF2A72 #AF2A2F
triadic
#AF2A72 #72AF2A #2A72AF
tetradic
#AF2A72 #AFAA2A #2AAF67 #2A2FAF
square
#AF2A72 #AFAA2A #2AAF67 #2A2FAF
split-complementary
#AF2A72 #2FAF2A #2AAFAA
monochromatic
#4C1232 #7E1E52 #AF2A72 #D24491 #DE75AE

Accessibility & contrast

On white

6.18
#AF2A72 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF2A72 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A72
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A72#FFFFFF#000000##FFFFFF
##AF2A721.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425274
Deuteranopia (green-blind)
#686A6F
Tritanopia (blue-blind)
#BD1E4A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2a72;
/* rgb */ color: rgb(175, 42, 114);
/* oklch */ color: oklch(51.7% 0.180 352.4);
Tailwind
colors: {
  custom: {
    50: '#cc719a',
    500: '#af2a72',
    950: '#000000',
  },
}
SCSS
$custom: #af2a72;
$custom-light: #cc719a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a72",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 327.519,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51692,
    "c": 0.18043,
    "h": 352.4
  },
  "luminance": 0.11985
}

Semantic roles & 50–950 ramp

primary
#AF2A72
secondary
#6FC697
accent
#E48D43
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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