#AF2F56#AF2F56

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

Color values

HEX#AF2F56
RGBrgb(175, 47, 86)
HSLhsl(342, 58%, 44%)
HSVhsv(342, 73%, 69%)
CMYKcmyk(0%, 73.1%, 50.9%, 31.4%)
CIE-LABlab(40.93, 53.86, 7.89)
CIE-LCHlch(40.93, 54.43, 8.33°)
OKLaboklab(51.21% 0.1642 0.0205)
OKLCHoklch(51.21% 0.165 7.1)
XYZxyz(20.3772, 11.8216, 10.0111)
Luminance0.1182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F56 #2FAF88
analogous
#AF2F96 #AF2F56 #AF482F
triadic
#AF2F56 #56AF2F #2F56AF
tetradic
#AF2F56 #96AF2F #2FAF88 #482FAF
square
#AF2F56 #96AF2F #2FAF88 #482FAF
split-complementary
#AF2F56 #2FAF48 #2F96AF
monochromatic
#4F1527 #7F223E #AF2F56 #CF4C74 #DC7C9A

Accessibility & contrast

On white

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

On black

3.36
#AF2F56 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF2F56#FFFFFF#000000##FFFFFF
##AF2F561.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5057
Deuteranopia (green-blind)
#706A53
Tritanopia (blue-blind)
#BF133F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2f56;
/* rgb */ color: rgb(175, 47, 86);
/* oklch */ color: oklch(51.2% 0.165 7.1);
Tailwind
colors: {
  custom: {
    50: '#cd7285',
    500: '#af2f56',
    950: '#000000',
  },
}
SCSS
$custom: #af2f56;
$custom-light: #cd7285;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f56",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 86
  },
  "hsl": {
    "h": 341.719,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51213,
    "c": 0.16544,
    "h": 7.1
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

primary
#AF2F56
secondary
#75C4AC
accent
#E1B247
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15090B
muted
#837B7C

Preview Lab

Preview with #AF2F56

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

Preview Lab → · Contrast checker → · Palette generator →

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