#AF417D#AF417D

#AF417D is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.4% C 0.157 H 349.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF417D
RGBrgb(175, 65, 125)
HSLhsl(327, 46%, 47%)
HSVhsv(327, 63%, 69%)
CMYKcmyk(0%, 62.9%, 28.6%, 31.4%)
CIE-LABlab(44.77, 50.86, -10.68)
CIE-LCHlch(44.77, 51.97, 348.14°)
OKLaboklab(54.45% 0.1543 -0.0279)
OKLCHoklch(54.45% 0.157 349.8)
XYZxyz(23.2722, 14.3776, 20.9476)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF417D #41AF73
analogous
#AA41AF #AF417D #AF4146
triadic
#AF417D #7DAF41 #417DAF
tetradic
#AF417D #AFAA41 #41AF73 #4146AF
square
#AF417D #AFAA41 #41AF73 #4146AF
split-complementary
#AF417D #46AF41 #41AFAA
monochromatic
#56203D #82305D #AF417D #C6679B #D793B8

Accessibility & contrast

On white

5.42
#AF417D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF417D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF417D
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF417D#FFFFFF#000000##FFFFFF
##AF417D1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5E7F
Deuteranopia (green-blind)
#6E717A
Tritanopia (blue-blind)
#BB3C59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af417d;
/* rgb */ color: rgb(175, 65, 125);
/* oklch */ color: oklch(54.4% 0.157 349.8);
Tailwind
colors: {
  custom: {
    50: '#ca7ca2',
    500: '#af417d',
    950: '#000000',
  },
}
SCSS
$custom: #af417d;
$custom-light: #ca7ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#af417d",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 327.273,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.15684,
    "h": 349.8
  },
  "luminance": 0.14375
}

Semantic roles & 50–950 ramp

primary
#AF417D
secondary
#89C2A3
accent
#D58E52
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF417D

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

Preview Lab → · Contrast checker → · Palette generator →

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