#AF2171#AF2171

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

Color values

HEX#AF2171
RGBrgb(175, 33, 113)
HSLhsl(326, 68%, 41%)
HSVhsv(326, 81%, 69%)
CMYKcmyk(0%, 81.1%, 35.4%, 31.4%)
CIE-LABlab(40.24, 60.84, -10.10)
CIE-LCHlch(40.24, 61.67, 350.58°)
OKLaboklab(50.98% 0.1869 -0.0261)
OKLCHoklch(50.98% 0.189 352.1)
XYZxyz(21.2050, 11.3966, 16.7027)
Luminance0.1139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2171 #21AF5F
analogous
#A621AF #AF2171 #AF212A
triadic
#AF2171 #71AF21 #2171AF
tetradic
#AF2171 #AFA621 #21AF5F #212AAF
square
#AF2171 #AFA621 #21AF5F #212AAF
split-complementary
#AF2171 #2AAF21 #21AFA6
monochromatic
#480E2F #7C1750 #AF2171 #D93491 #E368AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2171#FFFFFF#000000##FFFFFF
##AF21711.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)
#3E4F73
Deuteranopia (green-blind)
#66686E
Tritanopia (blue-blind)
#BD0F47
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2171;
/* rgb */ color: rgb(175, 33, 113);
/* oklch */ color: oklch(51.0% 0.189 352.1);
Tailwind
colors: {
  custom: {
    50: '#cc6d99',
    500: '#af2171',
    950: '#000000',
  },
}
SCSS
$custom: #af2171;
$custom-light: #cc6d99;
$custom-dark: #000000;
JSON
{
  "hex": "#af2171",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 326.197,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50983,
    "c": 0.18867,
    "h": 352.1
  },
  "luminance": 0.11394
}

Semantic roles & 50–950 ramp

primary
#AF2171
secondary
#64C890
accent
#EB893D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2171

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

Preview Lab → · Contrast checker → · Palette generator →

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