#AF2C5E#AF2C5E

#AF2C5E is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.2% C 0.171 H 2.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF2C5E
RGBrgb(175, 44, 94)
HSLhsl(337, 60%, 43%)
HSVhsv(337, 75%, 69%)
CMYKcmyk(0%, 74.9%, 46.3%, 31.4%)
CIE-LABlab(40.78, 55.62, 2.63)
CIE-LCHlch(40.78, 55.68, 2.71°)
OKLaboklab(51.17% 0.1705 0.0074)
OKLCHoklch(51.17% 0.171 2.5)
XYZxyz(20.6019, 11.7262, 11.7660)
Luminance0.1172 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C5E #2CAF7D
analogous
#AF2C9F #AF2C5E #AF3B2C
triadic
#AF2C5E #5EAF2C #2C5EAF
tetradic
#AF2C5E #9FAF2C #2CAF7D #3B2CAF
square
#AF2C5E #9FAF2C #2CAF7D #3B2CAF
split-complementary
#AF2C5E #2CAF3B #2C9FAF
monochromatic
#4D1329 #7E2044 #AF2C5E #D1477C #DD789F

Accessibility & contrast

On white

6.28
#AF2C5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF2C5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C5E
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C5E#FFFFFF#000000##FFFFFF
##AF2C5E1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A505F
Deuteranopia (green-blind)
#6D695B
Tritanopia (blue-blind)
#BE1341
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2c5e;
/* rgb */ color: rgb(175, 44, 94);
/* oklch */ color: oklch(51.2% 0.171 2.5);
Tailwind
colors: {
  custom: {
    50: '#cc718b',
    500: '#af2c5e',
    950: '#000000',
  },
}
SCSS
$custom: #af2c5e;
$custom-light: #cc718b;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c5e",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 94
  },
  "hsl": {
    "h": 337.099,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.17061,
    "h": 2.5
  },
  "luminance": 0.11723
}

Semantic roles & 50–950 ramp

primary
#AF2C5E
secondary
#72C5A5
accent
#E3A745
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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