#AF2F52#AF2F52

#AF2F52 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.1% C 0.165 H 9.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF2F52
RGBrgb(175, 47, 82)
HSLhsl(344, 58%, 44%)
HSVhsv(344, 73%, 69%)
CMYKcmyk(0%, 73.1%, 53.1%, 31.4%)
CIE-LABlab(40.83, 53.52, 10.27)
CIE-LCHlch(40.83, 54.50, 10.86°)
OKLaboklab(51.11% 0.1626 0.0262)
OKLCHoklch(51.11% 0.165 9.2)
XYZxyz(20.2205, 11.7590, 9.1859)
Luminance0.1176 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F52 #2FAF8C
analogous
#AF2F92 #AF2F52 #AF4C2F
triadic
#AF2F52 #52AF2F #2F52AF
tetradic
#AF2F52 #92AF2F #2FAF8C #4C2FAF
square
#AF2F52 #92AF2F #2FAF8C #4C2FAF
split-complementary
#AF2F52 #2FAF4C #2F92AF
monochromatic
#4F1525 #7F223B #AF2F52 #CF4C70 #DC7C97

Accessibility & contrast

On white

6.27
#AF2F52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF2F52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F52
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F52#FFFFFF#000000##FFFFFF
##AF2F521.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5053
Deuteranopia (green-blind)
#706A4F
Tritanopia (blue-blind)
#BF103D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2f52;
/* rgb */ color: rgb(175, 47, 82);
/* oklch */ color: oklch(51.1% 0.165 9.2);
Tailwind
colors: {
  custom: {
    50: '#cd7282',
    500: '#af2f52',
    950: '#000000',
  },
}
SCSS
$custom: #af2f52;
$custom-light: #cd7282;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f52",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 343.594,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.16474,
    "h": 9.2
  },
  "luminance": 0.11756
}

Semantic roles & 50–950 ramp

primary
#AF2F52
secondary
#75C4AF
accent
#E1B747
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2F52

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

Preview Lab → · Contrast checker → · Palette generator →

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