#AF3172#AF3172

#AF3172 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.3% C 0.173 H 353.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF3172
RGBrgb(175, 49, 114)
HSLhsl(329, 56%, 44%)
HSVhsv(329, 72%, 69%)
CMYKcmyk(0%, 72%, 34.9%, 31.4%)
CIE-LABlab(42.04, 55.95, -8.01)
CIE-LCHlch(42.04, 56.52, 351.85°)
OKLaboklab(52.31% 0.1713 -0.0205)
OKLCHoklch(52.31% 0.173 353.2)
XYZxyz(21.8161, 12.5280, 17.1856)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3172 #31AF6E
analogous
#AD31AF #AF3172 #AF3133
triadic
#AF3172 #72AF31 #3172AF
tetradic
#AF3172 #AFAD31 #31AF6E #3133AF
square
#AF3172 #AFAD31 #31AF6E #3133AF
split-complementary
#AF3172 #33AF31 #31AFAD
monochromatic
#4F1634 #7F2453 #AF3172 #CE4F91 #DB7FAF

Accessibility & contrast

On white

5.99
#AF3172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF3172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3172
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3172#FFFFFF#000000##FFFFFF
##AF31721.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475574
Deuteranopia (green-blind)
#6A6C6F
Tritanopia (blue-blind)
#BC264D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af3172;
/* rgb */ color: rgb(175, 49, 114);
/* oklch */ color: oklch(52.3% 0.173 353.2);
Tailwind
colors: {
  custom: {
    50: '#cb749a',
    500: '#af3172',
    950: '#000000',
  },
}
SCSS
$custom: #af3172;
$custom-light: #cb749a;
$custom-dark: #000000;
JSON
{
  "hex": "#af3172",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 329.048,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52312,
    "c": 0.17254,
    "h": 353.2
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#AF3172
secondary
#78C49D
accent
#E09148
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3172

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

Preview Lab → · Contrast checker → · Palette generator →

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