#AF2F57#AF2F57

#AF2F57 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.2% C 0.166 H 6.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF2F57
RGBrgb(175, 47, 87)
HSLhsl(341, 58%, 44%)
HSVhsv(341, 73%, 69%)
CMYKcmyk(0%, 73.1%, 50.3%, 31.4%)
CIE-LABlab(40.96, 53.95, 7.30)
CIE-LCHlch(40.96, 54.44, 7.70°)
OKLaboklab(51.24% 0.1646 0.019)
OKLCHoklch(51.24% 0.166 6.6)
XYZxyz(20.4178, 11.8379, 10.2247)
Luminance0.1183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F57 #2FAF87
analogous
#AF2F97 #AF2F57 #AF472F
triadic
#AF2F57 #57AF2F #2F57AF
tetradic
#AF2F57 #97AF2F #2FAF87 #472FAF
square
#AF2F57 #97AF2F #2FAF87 #472FAF
split-complementary
#AF2F57 #2FAF47 #2F97AF
monochromatic
#4F1527 #7F223F #AF2F57 #CF4C75 #DC7C9A

Accessibility & contrast

On white

6.24
#AF2F57 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF2F57 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F57
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F57#FFFFFF#000000##FFFFFF
##AF2F571.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5058
Deuteranopia (green-blind)
#6F6A54
Tritanopia (blue-blind)
#BF1440
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f57;
/* rgb */ color: rgb(175, 47, 87);
/* oklch */ color: oklch(51.2% 0.166 6.6);
Tailwind
colors: {
  custom: {
    50: '#cd7286',
    500: '#af2f57',
    950: '#000000',
  },
}
SCSS
$custom: #af2f57;
$custom-light: #cd7286;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f57",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 87
  },
  "hsl": {
    "h": 341.25,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51241,
    "c": 0.16565,
    "h": 6.6
  },
  "luminance": 0.11835
}

Semantic roles & 50–950 ramp

primary
#AF2F57
secondary
#75C4AC
accent
#E1B147
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF2F57

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

Preview Lab → · Contrast checker → · Palette generator →

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