#AF517F#AF517F

#AF517F is a mid, vivid pink. Relative luminance 0.165; OKLCH L 56.6% C 0.133 H 351.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF517F
RGBrgb(175, 81, 127)
HSLhsl(331, 37%, 50%)
HSVhsv(331, 54%, 69%)
CMYKcmyk(0%, 53.7%, 27.4%, 31.4%)
CIE-LABlab(47.67, 43.58, -7.55)
CIE-LCHlch(47.67, 44.23, 350.17°)
OKLaboklab(56.62% 0.1318 -0.0195)
OKLCHoklch(56.62% 0.133 351.6)
XYZxyz(24.4533, 16.5333, 21.9779)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF517F #51AF81
analogous
#AF51AE #AF517F #AF5251
triadic
#AF517F #7FAF51 #517FAF
tetradic
#AF517F #AEAF51 #51AF81 #5251AF
square
#AF517F #AEAF51 #51AF81 #5251AF
split-complementary
#AF517F #51AF52 #51AEAF
monochromatic
#5C2A42 #853D61 #AF517F #C27B9E #D6A5BD

Accessibility & contrast

On white

4.88
#AF517F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF517F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF517F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF517F#FFFFFF#000000##FFFFFF
##AF517F1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6780
Deuteranopia (green-blind)
#76777D
Tritanopia (blue-blind)
#BB4D62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af517f;
/* rgb */ color: rgb(175, 81, 127);
/* oklch */ color: oklch(56.6% 0.133 351.6);
Tailwind
colors: {
  custom: {
    50: '#ca85a4',
    500: '#af517f',
    950: '#000000',
  },
}
SCSS
$custom: #af517f;
$custom-light: #ca85a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af517f",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 127
  },
  "hsl": {
    "h": 330.638,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56624,
    "c": 0.13319,
    "h": 351.6
  },
  "luminance": 0.16531
}

Semantic roles & 50–950 ramp

primary
#AF517F
secondary
#99C3AE
accent
#CD955B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF517F

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

Preview Lab → · Contrast checker → · Palette generator →

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