#AF417F#AF417F

#AF417F is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.5% C 0.158 H 348.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF417F
RGBrgb(175, 65, 127)
HSLhsl(326, 46%, 47%)
HSVhsv(326, 63%, 69%)
CMYKcmyk(0%, 62.9%, 27.4%, 31.4%)
CIE-LABlab(44.84, 51.13, -11.79)
CIE-LCHlch(44.84, 52.47, 347.01°)
OKLaboklab(54.53% 0.1549 -0.0309)
OKLCHoklch(54.53% 0.158 348.7)
XYZxyz(23.4012, 14.4292, 21.6273)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF417F #41AF71
analogous
#A841AF #AF417F #AF4148
triadic
#AF417F #7FAF41 #417FAF
tetradic
#AF417F #AFA841 #41AF71 #4148AF
square
#AF417F #AFA841 #41AF71 #4148AF
split-complementary
#AF417F #48AF41 #41AFA8
monochromatic
#56203E #82305F #AF417F #C6679D #D793BA

Accessibility & contrast

On white

5.40
#AF417F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF417F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF417F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF417F#FFFFFF#000000##FFFFFF
##AF417F1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5E81
Deuteranopia (green-blind)
#6E717C
Tritanopia (blue-blind)
#BB3D5A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af417f;
/* rgb */ color: rgb(175, 65, 127);
/* oklch */ color: oklch(54.5% 0.158 348.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ca4',
    500: '#af417f',
    950: '#000000',
  },
}
SCSS
$custom: #af417f;
$custom-light: #ca7ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#af417f",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 326.182,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54526,
    "c": 0.15796,
    "h": 348.7
  },
  "luminance": 0.14427
}

Semantic roles & 50–950 ramp

primary
#AF417F
secondary
#89C2A2
accent
#D58C52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF417F

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

Preview Lab → · Contrast checker → · Palette generator →

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