#AF4F71#AF4F71

#AF4F71 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 55.9% C 0.130 H 359.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF4F71
RGBrgb(175, 79, 113)
HSLhsl(339, 38%, 50%)
HSVhsv(339, 55%, 69%)
CMYKcmyk(0%, 54.9%, 35.4%, 31.4%)
CIE-LABlab(46.84, 42.75, -0.29)
CIE-LCHlch(46.84, 42.75, 359.61°)
OKLaboklab(55.86% 0.1301 -0.0002)
OKLCHoklch(55.86% 0.13 359.9)
XYZxyz(23.4570, 15.9005, 17.4533)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F71 #4FAF8D
analogous
#AF4FA1 #AF4F71 #AF5D4F
triadic
#AF4F71 #71AF4F #4F71AF
tetradic
#AF4F71 #A1AF4F #4FAF8D #5D4FAF
square
#AF4F71 #A1AF4F #4FAF8D #5D4FAF
split-complementary
#AF4F71 #4FAF5D #4FA1AF
monochromatic
#5B293B #853C56 #AF4F71 #C27993 #D5A3B5

Accessibility & contrast

On white

5.02
#AF4F71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF4F71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F71
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F71#FFFFFF#000000##FFFFFF
##AF4F711.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F6472
Deuteranopia (green-blind)
#78766F
Tritanopia (blue-blind)
#BC475C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4f71;
/* rgb */ color: rgb(175, 79, 113);
/* oklch */ color: oklch(55.9% 0.130 359.9);
Tailwind
colors: {
  custom: {
    50: '#ca8499',
    500: '#af4f71',
    950: '#000000',
  },
}
SCSS
$custom: #af4f71;
$custom-light: #ca8499;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f71",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 113
  },
  "hsl": {
    "h": 338.75,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55863,
    "c": 0.1301,
    "h": 359.9
  },
  "luminance": 0.15898
}

Semantic roles & 50–950 ramp

primary
#AF4F71
secondary
#97C3B3
accent
#CEA55A
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF4F71

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

Preview Lab → · Contrast checker → · Palette generator →

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