#AF2D7A#AF2D7A

#AF2D7A is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.181 H 348.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF2D7A
RGBrgb(175, 45, 122)
HSLhsl(324, 59%, 43%)
HSVhsv(324, 74%, 69%)
CMYKcmyk(0%, 74.3%, 30.3%, 31.4%)
CIE-LABlab(41.84, 58.29, -13.27)
CIE-LCHlch(41.84, 59.78, 347.18°)
OKLaboklab(52.26% 0.1778 -0.0348)
OKLCHoklch(52.26% 0.181 348.9)
XYZxyz(22.1316, 12.3984, 19.6362)
Luminance0.1240 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D7A #2DAF62
analogous
#A32DAF #AF2D7A #AF2D39
triadic
#AF2D7A #7AAF2D #2D7AAF
tetradic
#AF2D7A #AFA32D #2DAF62 #2D39AF
square
#AF2D7A #AFA32D #2DAF62 #2D39AF
split-complementary
#AF2D7A #39AF2D #2DAFA3
monochromatic
#4E1436 #7E2058 #AF2D7A #D04999 #DD7AB4

Accessibility & contrast

On white

6.04
#AF2D7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF2D7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D7A
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D7A#FFFFFF#000000##FFFFFF
##AF2D7A1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41547C
Deuteranopia (green-blind)
#676B77
Tritanopia (blue-blind)
#BC2650
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2d7a;
/* rgb */ color: rgb(175, 45, 122);
/* oklch */ color: oklch(52.3% 0.181 348.9);
Tailwind
colors: {
  custom: {
    50: '#cb72a0',
    500: '#af2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #af2d7a;
$custom-light: #cb72a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d7a",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 324.462,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52262,
    "c": 0.18118,
    "h": 348.9
  },
  "luminance": 0.12396
}

Semantic roles & 50–950 ramp

primary
#AF2D7A
secondary
#73C594
accent
#E28546
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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