#AF2872#AF2872

#AF2872 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.183 H 352.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AF2872
RGBrgb(175, 40, 114)
HSLhsl(327, 63%, 42%)
HSVhsv(327, 77%, 69%)
CMYKcmyk(0%, 77.1%, 34.9%, 31.4%)
CIE-LABlab(40.98, 58.96, -9.61)
CIE-LCHlch(40.98, 59.74, 350.74°)
OKLaboklab(51.53% 0.1808 -0.0248)
OKLCHoklch(51.53% 0.183 352.2)
XYZxyz(21.4766, 11.8491, 17.0724)
Luminance0.1185 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2872 #28AF65
analogous
#A928AF #AF2872 #AF282F
triadic
#AF2872 #72AF28 #2872AF
tetradic
#AF2872 #AFA928 #28AF65 #282FAF
square
#AF2872 #AFA928 #28AF65 #282FAF
split-complementary
#AF2872 #2FAF28 #28AFA9
monochromatic
#4B1131 #7D1D52 #AF2872 #D44191 #DF73AE

Accessibility & contrast

On white

6.23
#AF2872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF2872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2872
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2872#FFFFFF#000000##FFFFFF
##AF28721.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415174
Deuteranopia (green-blind)
#68696F
Tritanopia (blue-blind)
#BD1B4A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2872;
/* rgb */ color: rgb(175, 40, 114);
/* oklch */ color: oklch(51.5% 0.183 352.2);
Tailwind
colors: {
  custom: {
    50: '#cc709a',
    500: '#af2872',
    950: '#000000',
  },
}
SCSS
$custom: #af2872;
$custom-light: #cc709a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2872",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 327.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5153,
    "c": 0.18251,
    "h": 352.2
  },
  "luminance": 0.11846
}

Semantic roles & 50–950 ramp

primary
#AF2872
secondary
#6DC695
accent
#E68C42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2872

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

Preview Lab → · Contrast checker → · Palette generator →

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