#AF2A4C#AF2A4C

#AF2A4C is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.5% C 0.169 H 11.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AF2A4C
RGBrgb(175, 42, 76)
HSLhsl(345, 61%, 43%)
HSVhsv(345, 76%, 69%)
CMYKcmyk(0%, 76%, 56.6%, 31.4%)
CIE-LABlab(40.07, 54.78, 13.00)
CIE-LCHlch(40.07, 56.30, 13.35°)
OKLaboklab(50.5% 0.1658 0.0326)
OKLCHoklch(50.5% 0.169 11.1)
XYZxyz(19.8136, 11.2945, 7.9728)
Luminance0.1129 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A4C #2AAF8D
analogous
#AF2A8E #AF2A4C #AF4B2A
triadic
#AF2A4C #4CAF2A #2A4CAF
tetradic
#AF2A4C #8EAF2A #2AAF8D #4B2AAF
square
#AF2A4C #8EAF2A #2AAF8D #4B2AAF
split-complementary
#AF2A4C #2AAF4B #2A8EAF
monochromatic
#4C1221 #7E1E37 #AF2A4C #D24468 #DE7590

Accessibility & contrast

On white

6.44
#AF2A4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#AF2A4C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A4C
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A4C#FFFFFF#000000##FFFFFF
##AF2A4C1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4D4D
Deuteranopia (green-blind)
#706849
Tritanopia (blue-blind)
#BF0038
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af2a4c;
/* rgb */ color: rgb(175, 42, 76);
/* oklch */ color: oklch(50.5% 0.169 11.1);
Tailwind
colors: {
  custom: {
    50: '#cd707d',
    500: '#af2a4c',
    950: '#000000',
  },
}
SCSS
$custom: #af2a4c;
$custom-light: #cd707d;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a4c",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 344.662,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.169,
    "h": 11.1
  },
  "luminance": 0.11292
}

Semantic roles & 50–950 ramp

primary
#AF2A4C
secondary
#6FC6AF
accent
#E4BB43
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#150809
muted
#837B7B

Preview Lab

Preview with #AF2A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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