#AF2252#AF2252

#AF2252 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.177 H 6.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AF2252
RGBrgb(175, 34, 82)
HSLhsl(340, 67%, 41%)
HSVhsv(340, 81%, 69%)
CMYKcmyk(0%, 80.6%, 53.1%, 31.4%)
CIE-LABlab(39.36, 57.66, 8.21)
CIE-LCHlch(39.36, 58.24, 8.10°)
OKLaboklab(50.02% 0.176 0.0212)
OKLCHoklch(50.02% 0.177 6.9)
XYZxyz(19.7761, 10.8700, 9.0378)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2252 #22AF7F
analogous
#AF2298 #AF2252 #AF3822
triadic
#AF2252 #52AF22 #2252AF
tetradic
#AF2252 #98AF22 #22AF7F #3822AF
square
#AF2252 #98AF22 #22AF7F #3822AF
split-complementary
#AF2252 #22AF38 #2298AF
monochromatic
#490E22 #7C183A #AF2252 #D8366D #E26992

Accessibility & contrast

On white

6.62
#AF2252 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#AF2252 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2252
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2252#FFFFFF#000000##FFFFFF
##AF22521.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484B53
Deuteranopia (green-blind)
#6D674F
Tritanopia (blue-blind)
#BF0037
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2252;
/* rgb */ color: rgb(175, 34, 82);
/* oklch */ color: oklch(50.0% 0.177 6.9);
Tailwind
colors: {
  custom: {
    50: '#cd6d82',
    500: '#af2252',
    950: '#000000',
  },
}
SCSS
$custom: #af2252;
$custom-light: #cd6d82;
$custom-dark: #000000;
JSON
{
  "hex": "#af2252",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 339.574,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50021,
    "c": 0.17722,
    "h": 6.9
  },
  "luminance": 0.10867
}

Semantic roles & 50–950 ramp

primary
#AF2252
secondary
#65C8A6
accent
#EAAF3D
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2252

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

Preview Lab → · Contrast checker → · Palette generator →

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