#AF2F5D#AF2F5D

#AF2F5D is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.4% C 0.167 H 3.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AF2F5D
RGBrgb(175, 47, 93)
HSLhsl(338, 58%, 44%)
HSVhsv(338, 73%, 69%)
CMYKcmyk(0%, 73.1%, 46.9%, 31.4%)
CIE-LABlab(41.12, 54.49, 3.75)
CIE-LCHlch(41.12, 54.61, 3.94°)
OKLaboklab(51.42% 0.1668 0.0102)
OKLCHoklch(51.42% 0.167 3.5)
XYZxyz(20.6732, 11.9400, 11.5698)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F5D #2FAF81
analogous
#AF2F9D #AF2F5D #AF412F
triadic
#AF2F5D #5DAF2F #2F5DAF
tetradic
#AF2F5D #9DAF2F #2FAF81 #412FAF
square
#AF2F5D #9DAF2F #2FAF81 #412FAF
split-complementary
#AF2F5D #2FAF41 #2F9DAF
monochromatic
#4F152A #7F2243 #AF2F5D #CF4C7B #DC7C9F

Accessibility & contrast

On white

6.20
#AF2F5D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AF2F5D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F5D
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F5D#FFFFFF#000000##FFFFFF
##AF2F5D1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C515E
Deuteranopia (green-blind)
#6E6A5A
Tritanopia (blue-blind)
#BE1842
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f5d;
/* rgb */ color: rgb(175, 47, 93);
/* oklch */ color: oklch(51.4% 0.167 3.5);
Tailwind
colors: {
  custom: {
    50: '#cc728a',
    500: '#af2f5d',
    950: '#000000',
  },
}
SCSS
$custom: #af2f5d;
$custom-light: #cc728a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f5d",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 338.438,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51415,
    "c": 0.16707,
    "h": 3.5
  },
  "luminance": 0.11937
}

Semantic roles & 50–950 ramp

primary
#AF2F5D
secondary
#75C4A8
accent
#E1AA47
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF2F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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