#AF2F51#AF2F51

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

Color values

HEX#AF2F51
RGBrgb(175, 47, 81)
HSLhsl(344, 58%, 44%)
HSVhsv(344, 73%, 69%)
CMYKcmyk(0%, 73.1%, 53.7%, 31.4%)
CIE-LABlab(40.81, 53.44, 10.86)
CIE-LCHlch(40.81, 54.54, 11.49°)
OKLaboklab(51.08% 0.1623 0.0277)
OKLCHoklch(51.08% 0.165 9.7)
XYZxyz(20.1827, 11.7439, 8.9870)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F51 #2FAF8D
analogous
#AF2F91 #AF2F51 #AF4D2F
triadic
#AF2F51 #51AF2F #2F51AF
tetradic
#AF2F51 #91AF2F #2FAF8D #4D2FAF
square
#AF2F51 #91AF2F #2FAF8D #4D2FAF
split-complementary
#AF2F51 #2FAF4D #2F91AF
monochromatic
#4F1524 #7F223B #AF2F51 #CF4C6F #DC7C96

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2F51#FFFFFF#000000##FFFFFF
##AF2F511.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)
#4F5052
Deuteranopia (green-blind)
#706A4E
Tritanopia (blue-blind)
#BF103D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2f51;
/* rgb */ color: rgb(175, 47, 81);
/* oklch */ color: oklch(51.1% 0.165 9.7);
Tailwind
colors: {
  custom: {
    50: '#cd7281',
    500: '#af2f51',
    950: '#000000',
  },
}
SCSS
$custom: #af2f51;
$custom-light: #cd7281;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f51",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 81
  },
  "hsl": {
    "h": 344.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5108,
    "c": 0.16459,
    "h": 9.7
  },
  "luminance": 0.11741
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2F51

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

Preview Lab → · Contrast checker → · Palette generator →

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