#AF2F5C#AF2F5C

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

Color values

HEX#AF2F5C
RGBrgb(175, 47, 92)
HSLhsl(339, 58%, 44%)
HSVhsv(339, 73%, 69%)
CMYKcmyk(0%, 73.1%, 47.4%, 31.4%)
CIE-LABlab(41.09, 54.39, 4.34)
CIE-LCHlch(41.09, 54.57, 4.56°)
OKLaboklab(51.39% 0.1664 0.0117)
OKLCHoklch(51.39% 0.167 4)
XYZxyz(20.6292, 11.9224, 11.3381)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F5C #2FAF82
analogous
#AF2F9C #AF2F5C #AF422F
triadic
#AF2F5C #5CAF2F #2F5CAF
tetradic
#AF2F5C #9CAF2F #2FAF82 #422FAF
square
#AF2F5C #9CAF2F #2FAF82 #422FAF
split-complementary
#AF2F5C #2FAF42 #2F9CAF
monochromatic
#4F1529 #7F2243 #AF2F5C #CF4C7A #DC7C9E

Accessibility & contrast

On white

6.21
#AF2F5C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF2F5C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F5C
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F5C#FFFFFF#000000##FFFFFF
##AF2F5C1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D515D
Deuteranopia (green-blind)
#6F6A59
Tritanopia (blue-blind)
#BE1742
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f5c;
/* rgb */ color: rgb(175, 47, 92);
/* oklch */ color: oklch(51.4% 0.167 4.0);
Tailwind
colors: {
  custom: {
    50: '#cc7289',
    500: '#af2f5c',
    950: '#000000',
  },
}
SCSS
$custom: #af2f5c;
$custom-light: #cc7289;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f5c",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 338.906,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51385,
    "c": 0.16681,
    "h": 4
  },
  "luminance": 0.1192
}

Semantic roles & 50–950 ramp

primary
#AF2F5C
secondary
#75C4A9
accent
#E1AB47
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF2F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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