#AF2873#AF2873

#AF2873 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.183 H 351.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AF2873
RGBrgb(175, 40, 115)
HSLhsl(327, 63%, 42%)
HSVhsv(327, 77%, 69%)
CMYKcmyk(0%, 77.1%, 34.3%, 31.4%)
CIE-LABlab(41.01, 59.07, -10.18)
CIE-LCHlch(41.01, 59.94, 350.22°)
OKLaboklab(51.57% 0.1811 -0.0263)
OKLCHoklch(51.57% 0.183 351.7)
XYZxyz(21.5338, 11.8719, 17.3739)
Luminance0.1187 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2873 #28AF64
analogous
#A828AF #AF2873 #AF282F
triadic
#AF2873 #73AF28 #2873AF
tetradic
#AF2873 #AFA828 #28AF64 #282FAF
square
#AF2873 #AFA828 #28AF64 #282FAF
split-complementary
#AF2873 #2FAF28 #28AFA8
monochromatic
#4B1132 #7D1D52 #AF2873 #D44192 #DF73AF

Accessibility & contrast

On white

6.22
#AF2873 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2873
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2873#FFFFFF#000000##FFFFFF
##AF28731.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415175
Deuteranopia (green-blind)
#676970
Tritanopia (blue-blind)
#BD1C4A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2873;
/* rgb */ color: rgb(175, 40, 115);
/* oklch */ color: oklch(51.6% 0.183 351.7);
Tailwind
colors: {
  custom: {
    50: '#cc709b',
    500: '#af2873',
    950: '#000000',
  },
}
SCSS
$custom: #af2873;
$custom-light: #cc709b;
$custom-dark: #000000;
JSON
{
  "hex": "#af2873",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 326.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51569,
    "c": 0.18299,
    "h": 351.7
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#AF2873
secondary
#6DC694
accent
#E68B42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2873

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

Preview Lab → · Contrast checker → · Palette generator →

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