#AF4872#AF4872

#AF4872 is a mid, vivid pink. Relative luminance 0.150; OKLCH L 54.9% C 0.141 H 357.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF4872
RGBrgb(175, 72, 114)
HSLhsl(336, 42%, 48%)
HSVhsv(336, 59%, 69%)
CMYKcmyk(0%, 58.9%, 34.9%, 31.4%)
CIE-LABlab(45.59, 46.27, -2.74)
CIE-LCHlch(45.59, 46.35, 356.61°)
OKLaboklab(54.93% 0.141 -0.0066)
OKLCHoklch(54.93% 0.141 357.3)
XYZxyz(23.0350, 14.9660, 17.5919)
Luminance0.1496 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4872 #48AF85
analogous
#AF48A5 #AF4872 #AF5148
triadic
#AF4872 #72AF48 #4872AF
tetradic
#AF4872 #A5AF48 #48AF85 #5148AF
square
#AF4872 #A5AF48 #48AF85 #5148AF
split-complementary
#AF4872 #48AF51 #48A5AF
monochromatic
#58243A #843656 #AF4872 #C47092 #D69BB3

Accessibility & contrast

On white

5.26
#AF4872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF4872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4872
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4872#FFFFFF#000000##FFFFFF
##AF48721.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596073
Deuteranopia (green-blind)
#747370
Tritanopia (blue-blind)
#BC4058
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af4872;
/* rgb */ color: rgb(175, 72, 114);
/* oklch */ color: oklch(54.9% 0.141 357.3);
Tailwind
colors: {
  custom: {
    50: '#ca809a',
    500: '#af4872',
    950: '#000000',
  },
}
SCSS
$custom: #af4872;
$custom-light: #ca809a;
$custom-dark: #000000;
JSON
{
  "hex": "#af4872",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 335.534,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54934,
    "c": 0.14117,
    "h": 357.3
  },
  "luminance": 0.14964
}

Semantic roles & 50–950 ramp

primary
#AF4872
secondary
#90C2AE
accent
#D29F56
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF4872

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

Preview Lab → · Contrast checker → · Palette generator →

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