#AF3871#AF3871

#AF3871 is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.0% C 0.163 H 354.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF3871
RGBrgb(175, 56, 113)
HSLhsl(331, 52%, 45%)
HSVhsv(331, 68%, 69%)
CMYKcmyk(0%, 68%, 35.4%, 31.4%)
CIE-LABlab(42.97, 53.17, -6.01)
CIE-LCHlch(42.97, 53.51, 353.55°)
OKLaboklab(52.98% 0.1626 -0.0152)
OKLCHoklch(52.98% 0.163 354.7)
XYZxyz(22.0753, 13.1371, 16.9928)
Luminance0.1313 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3871 #38AF76
analogous
#AF38AC #AF3871 #AF3B38
triadic
#AF3871 #71AF38 #3871AF
tetradic
#AF3871 #ACAF38 #38AF76 #3B38AF
square
#AF3871 #ACAF38 #38AF76 #3B38AF
split-complementary
#AF3871 #38AF3B #38ACAF
monochromatic
#521A35 #812953 #AF3871 #CA5A90 #D988AF

Accessibility & contrast

On white

5.79
#AF3871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF3871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3871
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3871#FFFFFF#000000##FFFFFF
##AF38711.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5873
Deuteranopia (green-blind)
#6D6E6E
Tritanopia (blue-blind)
#BC2E50
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af3871;
/* rgb */ color: rgb(175, 56, 113);
/* oklch */ color: oklch(53.0% 0.163 354.7);
Tailwind
colors: {
  custom: {
    50: '#cb7799',
    500: '#af3871',
    950: '#000000',
  },
}
SCSS
$custom: #af3871;
$custom-light: #cb7799;
$custom-dark: #000000;
JSON
{
  "hex": "#af3871",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 331.261,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52982,
    "c": 0.16334,
    "h": 354.7
  },
  "luminance": 0.13135
}

Semantic roles & 50–950 ramp

primary
#AF3871
secondary
#80C3A3
accent
#DB974D
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3871

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

Preview Lab → · Contrast checker → · Palette generator →

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