#AF2971#AF2971

#AF2971 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.181 H 352.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AF2971
RGBrgb(175, 41, 113)
HSLhsl(328, 62%, 42%)
HSVhsv(328, 77%, 69%)
CMYKcmyk(0%, 76.6%, 35.4%, 31.4%)
CIE-LABlab(41.05, 58.54, -8.88)
CIE-LCHlch(41.05, 59.21, 351.37°)
OKLaboklab(51.57% 0.1796 -0.0228)
OKLCHoklch(51.57% 0.181 352.8)
XYZxyz(21.4541, 11.8947, 16.7857)
Luminance0.1189 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2971 #29AF67
analogous
#AA29AF #AF2971 #AF292E
triadic
#AF2971 #71AF29 #2971AF
tetradic
#AF2971 #AFAA29 #29AF67 #292EAF
square
#AF2971 #AFAA29 #29AF67 #292EAF
split-complementary
#AF2971 #2EAF29 #29AFAA
monochromatic
#4C1231 #7D1D51 #AF2971 #D34290 #DE74AD

Accessibility & contrast

On white

6.22
#AF2971 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF2971 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2971
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2971#FFFFFF#000000##FFFFFF
##AF29711.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425173
Deuteranopia (green-blind)
#686A6E
Tritanopia (blue-blind)
#BD1C49
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2971;
/* rgb */ color: rgb(175, 41, 113);
/* oklch */ color: oklch(51.6% 0.181 352.8);
Tailwind
colors: {
  custom: {
    50: '#cc7099',
    500: '#af2971',
    950: '#000000',
  },
}
SCSS
$custom: #af2971;
$custom-light: #cc7099;
$custom-dark: #000000;
JSON
{
  "hex": "#af2971",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 327.761,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51572,
    "c": 0.18101,
    "h": 352.8
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

primary
#AF2971
secondary
#6EC697
accent
#E58E43
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2971

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

Preview Lab → · Contrast checker → · Palette generator →

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