#AF5071#AF5071

#AF5071 is a mid, vivid pink. Relative luminance 0.160; OKLCH L 56.0% C 0.129 H 0.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF5071
RGBrgb(175, 80, 113)
HSLhsl(339, 37%, 50%)
HSVhsv(339, 54%, 69%)
CMYKcmyk(0%, 54.3%, 35.4%, 31.4%)
CIE-LABlab(47.03, 42.25, -0.01)
CIE-LCHlch(47.03, 42.25, 359.98°)
OKLaboklab(56.01% 0.1286 0.0005)
OKLCHoklch(56.01% 0.129 0.2)
XYZxyz(23.5297, 16.0459, 17.4776)
Luminance0.1604 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5071 #50AF8E
analogous
#AF50A0 #AF5071 #AF5F50
triadic
#AF5071 #71AF50 #5071AF
tetradic
#AF5071 #A0AF50 #50AF8E #5F50AF
square
#AF5071 #A0AF50 #50AF8E #5F50AF
split-complementary
#AF5071 #50AF5F #50A0AF
monochromatic
#5B2A3B #853D56 #AF5071 #C27A93 #D5A4B5

Accessibility & contrast

On white

4.99
#AF5071 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AF5071 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5071
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5071#FFFFFF#000000##FFFFFF
##AF50711.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#606472
Deuteranopia (green-blind)
#78766F
Tritanopia (blue-blind)
#BC485C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af5071;
/* rgb */ color: rgb(175, 80, 113);
/* oklch */ color: oklch(56.0% 0.129 0.2);
Tailwind
colors: {
  custom: {
    50: '#ca8499',
    500: '#af5071',
    950: '#000000',
  },
}
SCSS
$custom: #af5071;
$custom-light: #ca8499;
$custom-dark: #000000;
JSON
{
  "hex": "#af5071",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 113
  },
  "hsl": {
    "h": 339.158,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56006,
    "c": 0.12856,
    "h": 0.2
  },
  "luminance": 0.16044
}

Semantic roles & 50–950 ramp

primary
#AF5071
secondary
#98C3B4
accent
#CDA55B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF5071

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

Preview Lab → · Contrast checker → · Palette generator →

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