#AF2F71#AF2F71

#AF2F71 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.174 H 353.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF2F71
RGBrgb(175, 47, 113)
HSLhsl(329, 58%, 44%)
HSVhsv(329, 73%, 69%)
CMYKcmyk(0%, 73.1%, 35.4%, 31.4%)
CIE-LABlab(41.75, 56.55, -7.82)
CIE-LCHlch(41.75, 57.09, 352.12°)
OKLaboklab(52.09% 0.1733 -0.02)
OKLCHoklch(52.09% 0.174 353.4)
XYZxyz(21.6777, 12.3418, 16.8602)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F71 #2FAF6D
analogous
#AD2FAF #AF2F71 #AF2F31
triadic
#AF2F71 #71AF2F #2F71AF
tetradic
#AF2F71 #AFAD2F #2FAF6D #2F31AF
square
#AF2F71 #AFAD2F #2FAF6D #2F31AF
split-complementary
#AF2F71 #31AF2F #2FAFAD
monochromatic
#4F1533 #7F2252 #AF2F71 #CF4C90 #DC7CAE

Accessibility & contrast

On white

6.06
#AF2F71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF2F71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F71
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F71#FFFFFF#000000##FFFFFF
##AF2F711.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465473
Deuteranopia (green-blind)
#6A6B6E
Tritanopia (blue-blind)
#BD234C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2f71;
/* rgb */ color: rgb(175, 47, 113);
/* oklch */ color: oklch(52.1% 0.174 353.4);
Tailwind
colors: {
  custom: {
    50: '#cb7399',
    500: '#af2f71',
    950: '#000000',
  },
}
SCSS
$custom: #af2f71;
$custom-light: #cb7399;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f71",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 329.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52089,
    "c": 0.17443,
    "h": 353.4
  },
  "luminance": 0.12339
}

Semantic roles & 50–950 ramp

primary
#AF2F71
secondary
#75C49C
accent
#E19147
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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