#AF2A79#AF2A79

#AF2A79 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.0% C 0.184 H 349.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF2A79
RGBrgb(175, 42, 121)
HSLhsl(324, 61%, 43%)
HSVhsv(324, 76%, 69%)
CMYKcmyk(0%, 76%, 30.9%, 31.4%)
CIE-LABlab(41.46, 59.14, -13.23)
CIE-LCHlch(41.46, 60.60, 347.39°)
OKLaboklab(51.97% 0.1806 -0.0347)
OKLCHoklch(51.97% 0.184 349.1)
XYZxyz(21.9595, 12.1529, 19.2748)
Luminance0.1215 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A79 #2AAF60
analogous
#A22AAF #AF2A79 #AF2A37
triadic
#AF2A79 #79AF2A #2A79AF
tetradic
#AF2A79 #AFA22A #2AAF60 #2A37AF
square
#AF2A79 #AFA22A #2AAF60 #2A37AF
split-complementary
#AF2A79 #37AF2A #2AAFA2
monochromatic
#4C1235 #7E1E57 #AF2A79 #D24498 #DE75B4

Accessibility & contrast

On white

6.12
#AF2A79 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF2A79 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A79
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A79#FFFFFF#000000##FFFFFF
##AF2A791.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F537B
Deuteranopia (green-blind)
#666A76
Tritanopia (blue-blind)
#BC224E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a79;
/* rgb */ color: rgb(175, 42, 121);
/* oklch */ color: oklch(52.0% 0.184 349.1);
Tailwind
colors: {
  custom: {
    50: '#cb719f',
    500: '#af2a79',
    950: '#000000',
  },
}
SCSS
$custom: #af2a79;
$custom-light: #cb719f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a79",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 324.361,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51969,
    "c": 0.18393,
    "h": 349.1
  },
  "luminance": 0.1215
}

Semantic roles & 50–950 ramp

primary
#AF2A79
secondary
#6FC692
accent
#E48543
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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