#AF517D#AF517D

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

Color values

HEX#AF517D
RGBrgb(175, 81, 125)
HSLhsl(332, 37%, 50%)
HSVhsv(332, 54%, 69%)
CMYKcmyk(0%, 53.7%, 28.6%, 31.4%)
CIE-LABlab(47.60, 43.31, -6.44)
CIE-LCHlch(47.60, 43.78, 351.54°)
OKLaboklab(56.55% 0.1311 -0.0165)
OKLCHoklch(56.55% 0.132 352.8)
XYZxyz(24.3242, 16.4817, 21.2983)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF517D #51AF83
analogous
#AF51AC #AF517D #AF5451
triadic
#AF517D #7DAF51 #517DAF
tetradic
#AF517D #ACAF51 #51AF83 #5451AF
square
#AF517D #ACAF51 #51AF83 #5451AF
split-complementary
#AF517D #51AF54 #51ACAF
monochromatic
#5C2A41 #853D5F #AF517D #C27B9C #D6A5BC

Accessibility & contrast

On white

4.89
#AF517D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AF517D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF517D
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF517D#FFFFFF#000000##FFFFFF
##AF517D1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af517d;
/* rgb */ color: rgb(175, 81, 125);
/* oklch */ color: oklch(56.6% 0.132 352.8);
Tailwind
colors: {
  custom: {
    50: '#ca85a2',
    500: '#af517d',
    950: '#000000',
  },
}
SCSS
$custom: #af517d;
$custom-light: #ca85a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af517d",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 125
  },
  "hsl": {
    "h": 331.915,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56553,
    "c": 0.13216,
    "h": 352.8
  },
  "luminance": 0.16479
}

Semantic roles & 50–950 ramp

primary
#AF517D
secondary
#99C3AF
accent
#CD985B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E

Preview Lab

Preview with #AF517D

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

Preview Lab → · Contrast checker → · Palette generator →

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