#AF2571#AF2571

#AF2571 is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.3% C 0.185 H 352.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#AF2571
RGBrgb(175, 37, 113)
HSLhsl(327, 65%, 42%)
HSVhsv(327, 79%, 69%)
CMYKcmyk(0%, 78.9%, 35.4%, 31.4%)
CIE-LABlab(40.63, 59.74, -9.52)
CIE-LCHlch(40.63, 60.49, 350.95°)
OKLaboklab(51.26% 0.1834 -0.0245)
OKLCHoklch(51.26% 0.185 352.4)
XYZxyz(21.3227, 11.6320, 16.7419)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2571 #25AF63
analogous
#A825AF #AF2571 #AF252C
triadic
#AF2571 #71AF25 #2571AF
tetradic
#AF2571 #AFA825 #25AF63 #252CAF
square
#AF2571 #AFA825 #25AF63 #252CAF
split-complementary
#AF2571 #2CAF25 #25AFA8
monochromatic
#4A1030 #7C1A50 #AF2571 #D63C90 #E06EAD

Accessibility & contrast

On white

6.31
#AF2571 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AF2571 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2571
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2571#FFFFFF#000000##FFFFFF
##AF25711.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405073
Deuteranopia (green-blind)
#67696E
Tritanopia (blue-blind)
#BD1648
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2571;
/* rgb */ color: rgb(175, 37, 113);
/* oklch */ color: oklch(51.3% 0.185 352.4);
Tailwind
colors: {
  custom: {
    50: '#cc6f99',
    500: '#af2571',
    950: '#000000',
  },
}
SCSS
$custom: #af2571;
$custom-light: #cc6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#af2571",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 326.957,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51263,
    "c": 0.18501,
    "h": 352.4
  },
  "luminance": 0.11629
}

Semantic roles & 50–950 ramp

primary
#AF2571
secondary
#69C793
accent
#E88B40
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2571

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

Preview Lab → · Contrast checker → · Palette generator →

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