#AF507D#AF507D

#AF507D is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.4% C 0.134 H 352.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF507D
RGBrgb(175, 80, 125)
HSLhsl(332, 37%, 50%)
HSVhsv(332, 54%, 69%)
CMYKcmyk(0%, 54.3%, 28.6%, 31.4%)
CIE-LABlab(47.41, 43.81, -6.73)
CIE-LCHlch(47.41, 44.32, 351.27°)
OKLaboklab(56.41% 0.1326 -0.0173)
OKLCHoklch(56.41% 0.134 352.6)
XYZxyz(24.2505, 16.3342, 21.2737)
Luminance0.1633 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF507D #50AF82
analogous
#AF50AD #AF507D #AF5250
triadic
#AF507D #7DAF50 #507DAF
tetradic
#AF507D #ADAF50 #50AF82 #5250AF
square
#AF507D #ADAF50 #50AF82 #5250AF
split-complementary
#AF507D #50AF52 #50ADAF
monochromatic
#5B2A41 #853D5F #AF507D #C27A9C #D5A4BB

Accessibility & contrast

On white

4.92
#AF507D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF507D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF507D
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF507D#FFFFFF#000000##FFFFFF
##AF507D1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C667E
Deuteranopia (green-blind)
#76777B
Tritanopia (blue-blind)
#BB4C61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af507d;
/* rgb */ color: rgb(175, 80, 125);
/* oklch */ color: oklch(56.4% 0.134 352.6);
Tailwind
colors: {
  custom: {
    50: '#ca85a2',
    500: '#af507d',
    950: '#000000',
  },
}
SCSS
$custom: #af507d;
$custom-light: #ca85a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af507d",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 125
  },
  "hsl": {
    "h": 331.579,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56411,
    "c": 0.13376,
    "h": 352.6
  },
  "luminance": 0.16332
}

Semantic roles & 50–950 ramp

primary
#AF507D
secondary
#98C3AF
accent
#CD975B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E

Preview Lab

Preview with #AF507D

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

Preview Lab → · Contrast checker → · Palette generator →

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