#AF2C5B#AF2C5B

#AF2C5B is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.1% C 0.170 H 4.0°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF2C5B
RGBrgb(175, 44, 91)
HSLhsl(338, 60%, 43%)
HSVhsv(338, 75%, 69%)
CMYKcmyk(0%, 74.9%, 48%, 31.4%)
CIE-LABlab(40.69, 55.34, 4.40)
CIE-LCHlch(40.69, 55.52, 4.54°)
OKLaboklab(51.08% 0.1694 0.0118)
OKLCHoklch(51.08% 0.17 4)
XYZxyz(20.4699, 11.6734, 11.0708)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C5B #2CAF80
analogous
#AF2C9C #AF2C5B #AF3E2C
triadic
#AF2C5B #5BAF2C #2C5BAF
tetradic
#AF2C5B #9CAF2C #2CAF80 #3E2CAF
square
#AF2C5B #9CAF2C #2CAF80 #3E2CAF
split-complementary
#AF2C5B #2CAF3E #2C9CAF
monochromatic
#4D1328 #7E2042 #AF2C5B #D14779 #DD789C

Accessibility & contrast

On white

6.30
#AF2C5B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AF2C5B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C5B
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C5B#FFFFFF#000000##FFFFFF
##AF2C5B1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B505C
Deuteranopia (green-blind)
#6E6958
Tritanopia (blue-blind)
#BE1040
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2c5b;
/* rgb */ color: rgb(175, 44, 91);
/* oklch */ color: oklch(51.1% 0.170 4.0);
Tailwind
colors: {
  custom: {
    50: '#cc7189',
    500: '#af2c5b',
    950: '#000000',
  },
}
SCSS
$custom: #af2c5b;
$custom-light: #cc7189;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c5b",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 91
  },
  "hsl": {
    "h": 338.473,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51081,
    "c": 0.16979,
    "h": 4
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#AF2C5B
secondary
#72C5A7
accent
#E3AA45
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF2C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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