#AF2A57#AF2A57

#AF2A57 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.8% C 0.171 H 5.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF2A57
RGBrgb(175, 42, 87)
HSLhsl(340, 61%, 43%)
HSVhsv(340, 76%, 69%)
CMYKcmyk(0%, 76%, 50.3%, 31.4%)
CIE-LABlab(40.35, 55.66, 6.43)
CIE-LCHlch(40.35, 56.03, 6.59°)
OKLaboklab(50.79% 0.17 0.0169)
OKLCHoklch(50.79% 0.171 5.7)
XYZxyz(20.2292, 11.4608, 10.1619)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A57 #2AAF82
analogous
#AF2A9A #AF2A57 #AF3F2A
triadic
#AF2A57 #57AF2A #2A57AF
tetradic
#AF2A57 #9AAF2A #2AAF82 #3F2AAF
square
#AF2A57 #9AAF2A #2AAF82 #3F2AAF
split-complementary
#AF2A57 #2AAF3F #2A9AAF
monochromatic
#4C1226 #7E1E3E #AF2A57 #D24474 #DE7599

Accessibility & contrast

On white

6.38
#AF2A57 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AF2A57 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A57
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A57#FFFFFF#000000##FFFFFF
##AF2A571.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4E58
Deuteranopia (green-blind)
#6E6954
Tritanopia (blue-blind)
#BF073D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a57;
/* rgb */ color: rgb(175, 42, 87);
/* oklch */ color: oklch(50.8% 0.171 5.7);
Tailwind
colors: {
  custom: {
    50: '#cd7086',
    500: '#af2a57',
    950: '#000000',
  },
}
SCSS
$custom: #af2a57;
$custom-light: #cd7086;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a57",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 339.699,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5079,
    "c": 0.17087,
    "h": 5.7
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#AF2A57
secondary
#6FC6A8
accent
#E4AE43
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2A57

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

Preview Lab → · Contrast checker → · Palette generator →

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