#AF2A6F#AF2A6F

#AF2A6F is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.179 H 353.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AF2A6F
RGBrgb(175, 42, 111)
HSLhsl(329, 61%, 43%)
HSVhsv(329, 76%, 69%)
CMYKcmyk(0%, 76%, 36.6%, 31.4%)
CIE-LABlab(41.09, 58.00, -7.57)
CIE-LCHlch(41.09, 58.49, 352.56°)
OKLaboklab(51.58% 0.178 -0.0193)
OKLCHoklch(51.58% 0.179 353.8)
XYZxyz(21.3778, 11.9202, 16.2109)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A6F #2AAF6A
analogous
#AC2AAF #AF2A6F #AF2A2D
triadic
#AF2A6F #6FAF2A #2A6FAF
tetradic
#AF2A6F #AFAC2A #2AAF6A #2A2DAF
square
#AF2A6F #AFAC2A #2AAF6A #2A2DAF
split-complementary
#AF2A6F #2DAF2A #2AAFAC
monochromatic
#4C1230 #7E1E50 #AF2A6F #D2448E #DE75AC

Accessibility & contrast

On white

6.21
#AF2A6F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF2A6F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A6F
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A6F#FFFFFF#000000##FFFFFF
##AF2A6F1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445171
Deuteranopia (green-blind)
#696A6C
Tritanopia (blue-blind)
#BD1C49
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2a6f;
/* rgb */ color: rgb(175, 42, 111);
/* oklch */ color: oklch(51.6% 0.179 353.8);
Tailwind
colors: {
  custom: {
    50: '#cc7198',
    500: '#af2a6f',
    950: '#000000',
  },
}
SCSS
$custom: #af2a6f;
$custom-light: #cc7198;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a6f",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 328.872,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51578,
    "c": 0.17905,
    "h": 353.8
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#AF2A6F
secondary
#6FC699
accent
#E49143
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF2A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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