#AF517E#AF517E

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

Color values

HEX#AF517E
RGBrgb(175, 81, 126)
HSLhsl(331, 37%, 50%)
HSVhsv(331, 54%, 69%)
CMYKcmyk(0%, 53.7%, 28%, 31.4%)
CIE-LABlab(47.63, 43.44, -7.00)
CIE-LCHlch(47.63, 44.00, 350.85°)
OKLaboklab(56.59% 0.1314 -0.018)
OKLCHoklch(56.59% 0.133 352.2)
XYZxyz(24.3884, 16.5074, 21.6364)
Luminance0.1651 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF517E #51AF82
analogous
#AF51AD #AF517E #AF5351
triadic
#AF517E #7EAF51 #517EAF
tetradic
#AF517E #ADAF51 #51AF82 #5351AF
square
#AF517E #ADAF51 #51AF82 #5351AF
split-complementary
#AF517E #51AF53 #51ADAF
monochromatic
#5C2A42 #853D60 #AF517E #C27B9D #D6A5BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF517E#FFFFFF#000000##FFFFFF
##AF517E1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af517e;
/* rgb */ color: rgb(175, 81, 126);
/* oklch */ color: oklch(56.6% 0.133 352.2);
Tailwind
colors: {
  custom: {
    50: '#ca85a3',
    500: '#af517e',
    950: '#000000',
  },
}
SCSS
$custom: #af517e;
$custom-light: #ca85a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af517e",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 331.277,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56588,
    "c": 0.13267,
    "h": 352.2
  },
  "luminance": 0.16505
}

Semantic roles & 50–950 ramp

primary
#AF517E
secondary
#99C3AF
accent
#CD965B
background
#FCF8FA
surface
#F9EFF3
border
#D2CACD
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF517E

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

Preview Lab → · Contrast checker → · Palette generator →

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