#AF2E71#AF2E71

#AF2E71 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.0% C 0.176 H 353.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF2E71
RGBrgb(175, 46, 113)
HSLhsl(329, 58%, 43%)
HSVhsv(329, 74%, 69%)
CMYKcmyk(0%, 73.7%, 35.4%, 31.4%)
CIE-LABlab(41.63, 56.89, -8.01)
CIE-LCHlch(41.63, 57.45, 351.99°)
OKLaboklab(52% 0.1744 -0.0205)
OKLCHoklch(52% 0.176 353.3)
XYZxyz(21.6381, 12.2628, 16.8470)
Luminance0.1226 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E71 #2EAF6C
analogous
#AC2EAF #AF2E71 #AF2E31
triadic
#AF2E71 #71AF2E #2E71AF
tetradic
#AF2E71 #AFAC2E #2EAF6C #2E31AF
square
#AF2E71 #AFAC2E #2EAF6C #2E31AF
split-complementary
#AF2E71 #31AF2E #2EAFAC
monochromatic
#4E1532 #7F2152 #AF2E71 #D04B90 #DC7BAE

Accessibility & contrast

On white

6.08
#AF2E71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF2E71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E71
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E71#FFFFFF#000000##FFFFFF
##AF2E711.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455373
Deuteranopia (green-blind)
#6A6B6E
Tritanopia (blue-blind)
#BD224B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2e71;
/* rgb */ color: rgb(175, 46, 113);
/* oklch */ color: oklch(52.0% 0.176 353.3);
Tailwind
colors: {
  custom: {
    50: '#cb7299',
    500: '#af2e71',
    950: '#000000',
  },
}
SCSS
$custom: #af2e71;
$custom-light: #cb7299;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e71",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 328.837,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.17558,
    "h": 353.3
  },
  "luminance": 0.1226
}

Semantic roles & 50–950 ramp

primary
#AF2E71
secondary
#74C59B
accent
#E29146
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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