#AF2871#AF2871

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

Color values

HEX#AF2871
RGBrgb(175, 40, 113)
HSLhsl(328, 63%, 42%)
HSVhsv(328, 77%, 69%)
CMYKcmyk(0%, 77.1%, 35.4%, 31.4%)
CIE-LABlab(40.94, 58.85, -9.05)
CIE-LCHlch(40.94, 59.54, 351.26°)
OKLaboklab(51.49% 0.1805 -0.0232)
OKLCHoklch(51.49% 0.182 352.7)
XYZxyz(21.4200, 11.8264, 16.7743)
Luminance0.1182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2871 #28AF66
analogous
#AA28AF #AF2871 #AF282D
triadic
#AF2871 #71AF28 #2871AF
tetradic
#AF2871 #AFAA28 #28AF66 #282DAF
square
#AF2871 #AFAA28 #28AF66 #282DAF
split-complementary
#AF2871 #2DAF28 #28AFAA
monochromatic
#4B1131 #7D1D51 #AF2871 #D44190 #DF73AD

Accessibility & contrast

On white

6.24
#AF2871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF2871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2871
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2871#FFFFFF#000000##FFFFFF
##AF28711.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425173
Deuteranopia (green-blind)
#68696E
Tritanopia (blue-blind)
#BD1A49
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2871;
/* rgb */ color: rgb(175, 40, 113);
/* oklch */ color: oklch(51.5% 0.182 352.7);
Tailwind
colors: {
  custom: {
    50: '#cc7099',
    500: '#af2871',
    950: '#000000',
  },
}
SCSS
$custom: #af2871;
$custom-light: #cc7099;
$custom-dark: #000000;
JSON
{
  "hex": "#af2871",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 327.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51492,
    "c": 0.18204,
    "h": 352.7
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#AF2871
secondary
#6DC696
accent
#E68D42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2871

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

Preview Lab → · Contrast checker → · Palette generator →

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