#AF2172#AF2172

#AF2172 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.0% C 0.189 H 351.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AF2172
RGBrgb(175, 33, 114)
HSLhsl(326, 68%, 41%)
HSVhsv(326, 81%, 69%)
CMYKcmyk(0%, 81.1%, 34.9%, 31.4%)
CIE-LABlab(40.28, 60.94, -10.67)
CIE-LCHlch(40.28, 61.87, 350.07°)
OKLaboklab(51.02% 0.1871 -0.0276)
OKLCHoklch(51.02% 0.189 351.6)
XYZxyz(21.2616, 11.4192, 17.0008)
Luminance0.1142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2172 #21AF5E
analogous
#A521AF #AF2172 #AF212B
triadic
#AF2172 #72AF21 #2172AF
tetradic
#AF2172 #AFA521 #21AF5E #212BAF
square
#AF2172 #AFA521 #21AF5E #212BAF
split-complementary
#AF2172 #2BAF21 #21AFA5
monochromatic
#480E2F #7C1750 #AF2172 #D93492 #E368AE

Accessibility & contrast

On white

6.40
#AF2172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AF2172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2172
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2172#FFFFFF#000000##FFFFFF
##AF21721.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4F74
Deuteranopia (green-blind)
#66686F
Tritanopia (blue-blind)
#BD1047
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2172;
/* rgb */ color: rgb(175, 33, 114);
/* oklch */ color: oklch(51.0% 0.189 351.6);
Tailwind
colors: {
  custom: {
    50: '#cc6d9a',
    500: '#af2172',
    950: '#000000',
  },
}
SCSS
$custom: #af2172;
$custom-light: #cc6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2172",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 325.775,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51022,
    "c": 0.18914,
    "h": 351.6
  },
  "luminance": 0.11417
}

Semantic roles & 50–950 ramp

primary
#AF2172
secondary
#64C88F
accent
#EB883D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2172

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

Preview Lab → · Contrast checker → · Palette generator →

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