#AF417A#AF417A

#AF417A is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.3% C 0.155 H 351.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF417A
RGBrgb(175, 65, 122)
HSLhsl(329, 46%, 47%)
HSVhsv(329, 63%, 69%)
CMYKcmyk(0%, 62.9%, 30.3%, 31.4%)
CIE-LABlab(44.66, 50.48, -9.01)
CIE-LCHlch(44.66, 51.27, 349.88°)
OKLaboklab(54.33% 0.1535 -0.0233)
OKLCHoklch(54.33% 0.155 351.4)
XYZxyz(23.0834, 14.3021, 19.9535)
Luminance0.1430 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF417A #41AF76
analogous
#AD41AF #AF417A #AF4143
triadic
#AF417A #7AAF41 #417AAF
tetradic
#AF417A #AFAD41 #41AF76 #4143AF
square
#AF417A #AFAD41 #41AF76 #4143AF
split-complementary
#AF417A #43AF41 #41AFAD
monochromatic
#56203C #82305B #AF417A #C66798 #D793B6

Accessibility & contrast

On white

5.44
#AF417A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF417A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF417A
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF417A#FFFFFF#000000##FFFFFF
##AF417A1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505D7C
Deuteranopia (green-blind)
#6F7177
Tritanopia (blue-blind)
#BB3B58
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af417a;
/* rgb */ color: rgb(175, 65, 122);
/* oklch */ color: oklch(54.3% 0.155 351.4);
Tailwind
colors: {
  custom: {
    50: '#ca7ca0',
    500: '#af417a',
    950: '#000000',
  },
}
SCSS
$custom: #af417a;
$custom-light: #ca7ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#af417a",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 328.909,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54334,
    "c": 0.15525,
    "h": 351.4
  },
  "luminance": 0.143
}

Semantic roles & 50–950 ramp

primary
#AF417A
secondary
#89C2A5
accent
#D59252
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF417A

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

Preview Lab → · Contrast checker → · Palette generator →

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