#AF2C71#AF2C71

#AF2C71 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.8% C 0.178 H 353.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AF2C71
RGBrgb(175, 44, 113)
HSLhsl(328, 60%, 43%)
HSVhsv(328, 75%, 69%)
CMYKcmyk(0%, 74.9%, 35.4%, 31.4%)
CIE-LABlab(41.39, 57.57, -8.37)
CIE-LCHlch(41.39, 58.17, 351.73°)
OKLaboklab(51.82% 0.1765 -0.0214)
OKLCHoklch(51.82% 0.178 353.1)
XYZxyz(21.5618, 12.1102, 16.8216)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C71 #2CAF6A
analogous
#AB2CAF #AF2C71 #AF2C30
triadic
#AF2C71 #71AF2C #2C71AF
tetradic
#AF2C71 #AFAB2C #2CAF6A #2C30AF
square
#AF2C71 #AFAB2C #2CAF6A #2C30AF
split-complementary
#AF2C71 #30AF2C #2CAFAB
monochromatic
#4D1332 #7E2051 #AF2C71 #D14790 #DD78AD

Accessibility & contrast

On white

6.14
#AF2C71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AF2C71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C71
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C71#FFFFFF#000000##FFFFFF
##AF2C711.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445273
Deuteranopia (green-blind)
#696A6E
Tritanopia (blue-blind)
#BD204B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2c71;
/* rgb */ color: rgb(175, 44, 113);
/* oklch */ color: oklch(51.8% 0.178 353.1);
Tailwind
colors: {
  custom: {
    50: '#cc7199',
    500: '#af2c71',
    950: '#000000',
  },
}
SCSS
$custom: #af2c71;
$custom-light: #cc7199;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c71",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 328.397,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51822,
    "c": 0.17781,
    "h": 353.1
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#AF2C71
secondary
#72C599
accent
#E39045
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2C71

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

Preview Lab → · Contrast checker → · Palette generator →

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