#AF2C5F#AF2C5F

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

Color values

HEX#AF2C5F
RGBrgb(175, 44, 95)
HSLhsl(337, 60%, 43%)
HSVhsv(337, 75%, 69%)
CMYKcmyk(0%, 74.9%, 45.7%, 31.4%)
CIE-LABlab(40.81, 55.71, 2.04)
CIE-LCHlch(40.81, 55.75, 2.10°)
OKLaboklab(51.2% 0.1708 0.0059)
OKLCHoklch(51.2% 0.171 2)
XYZxyz(20.6471, 11.7443, 12.0039)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C5F #2CAF7C
analogous
#AF2CA0 #AF2C5F #AF3A2C
triadic
#AF2C5F #5FAF2C #2C5FAF
tetradic
#AF2C5F #A0AF2C #2CAF7C #3A2CAF
square
#AF2C5F #A0AF2C #2CAF7C #3A2CAF
split-complementary
#AF2C5F #2CAF3A #2CA0AF
monochromatic
#4D132A #7E2044 #AF2C5F #D1477D #DD78A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2C5F#FFFFFF#000000##FFFFFF
##AF2C5F1.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)
#4A5060
Deuteranopia (green-blind)
#6D695C
Tritanopia (blue-blind)
#BE1342
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2c5f;
/* rgb */ color: rgb(175, 44, 95);
/* oklch */ color: oklch(51.2% 0.171 2.0);
Tailwind
colors: {
  custom: {
    50: '#cc718c',
    500: '#af2c5f',
    950: '#000000',
  },
}
SCSS
$custom: #af2c5f;
$custom-light: #cc718c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c5f",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 95
  },
  "hsl": {
    "h": 336.641,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51203,
    "c": 0.1709,
    "h": 2
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#AF2C5F
secondary
#72C5A5
accent
#E3A545
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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