#AF2A4F#AF2A4F

#AF2A4F is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.6% C 0.169 H 9.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF2A4F
RGBrgb(175, 42, 79)
HSLhsl(343, 61%, 43%)
HSVhsv(343, 76%, 69%)
CMYKcmyk(0%, 76%, 54.9%, 31.4%)
CIE-LABlab(40.14, 55.01, 11.20)
CIE-LCHlch(40.14, 56.13, 11.51°)
OKLaboklab(50.57% 0.167 0.0284)
OKLCHoklch(50.57% 0.169 9.7)
XYZxyz(19.9203, 11.3372, 8.5350)
Luminance0.1133 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A4F #2AAF8A
analogous
#AF2A92 #AF2A4F #AF472A
triadic
#AF2A4F #4FAF2A #2A4FAF
tetradic
#AF2A4F #92AF2A #2AAF8A #472AAF
square
#AF2A4F #92AF2A #2AAF8A #472AAF
split-complementary
#AF2A4F #2AAF47 #2A92AF
monochromatic
#4C1222 #7E1E39 #AF2A4F #D2446C #DE7593

Accessibility & contrast

On white

6.43
#AF2A4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AF2A4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A4F
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A4F#FFFFFF#000000##FFFFFF
##AF2A4F1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4D50
Deuteranopia (green-blind)
#6F684C
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a4f;
/* rgb */ color: rgb(175, 42, 79);
/* oklch */ color: oklch(50.6% 0.169 9.7);
Tailwind
colors: {
  custom: {
    50: '#cd7080',
    500: '#af2a4f',
    950: '#000000',
  },
}
SCSS
$custom: #af2a4f;
$custom-light: #cd7080;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a4f",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 343.308,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50574,
    "c": 0.1694,
    "h": 9.7
  },
  "luminance": 0.11334
}

Semantic roles & 50–950 ramp

primary
#AF2A4F
secondary
#6FC6AE
accent
#E4B843
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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