#AF407A#AF407A

#AF407A is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.2% C 0.157 H 351.2°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF407A
RGBrgb(175, 64, 122)
HSLhsl(329, 46%, 47%)
HSVhsv(329, 63%, 69%)
CMYKcmyk(0%, 63.4%, 30.3%, 31.4%)
CIE-LABlab(44.50, 50.91, -9.25)
CIE-LCHlch(44.50, 51.75, 349.70°)
OKLaboklab(54.22% 0.1548 -0.024)
OKLCHoklch(54.22% 0.157 351.2)
XYZxyz(23.0265, 14.1883, 19.9345)
Luminance0.1419 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF407A #40AF75
analogous
#AD40AF #AF407A #AF4042
triadic
#AF407A #7AAF40 #407AAF
tetradic
#AF407A #AFAD40 #40AF75 #4042AF
square
#AF407A #AFAD40 #40AF75 #4042AF
split-complementary
#AF407A #42AF40 #40AFAD
monochromatic
#551F3C #82305B #AF407A #C76598 #D792B6

Accessibility & contrast

On white

5.47
#AF407A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF407A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF407A
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF407A#FFFFFF#000000##FFFFFF
##AF407A1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505D7C
Deuteranopia (green-blind)
#6E7177
Tritanopia (blue-blind)
#BB3A58
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af407a;
/* rgb */ color: rgb(175, 64, 122);
/* oklch */ color: oklch(54.2% 0.157 351.2);
Tailwind
colors: {
  custom: {
    50: '#ca7ba0',
    500: '#af407a',
    950: '#000000',
  },
}
SCSS
$custom: #af407a;
$custom-light: #ca7ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#af407a",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 328.649,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54215,
    "c": 0.15669,
    "h": 351.2
  },
  "luminance": 0.14186
}

Semantic roles & 50–950 ramp

primary
#AF407A
secondary
#88C3A4
accent
#D69152
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF407A

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

Preview Lab → · Contrast checker → · Palette generator →

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