#AF417C#AF417C

#AF417C is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.4% C 0.156 H 350.3°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF417C
RGBrgb(175, 65, 124)
HSLhsl(328, 46%, 47%)
HSVhsv(328, 63%, 69%)
CMYKcmyk(0%, 62.9%, 29.1%, 31.4%)
CIE-LABlab(44.73, 50.73, -10.13)
CIE-LCHlch(44.73, 51.73, 348.71°)
OKLaboklab(54.41% 0.1541 -0.0263)
OKLCHoklch(54.41% 0.156 350.3)
XYZxyz(23.2086, 14.3522, 20.6129)
Luminance0.1435 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF417C #41AF74
analogous
#AB41AF #AF417C #AF4145
triadic
#AF417C #7CAF41 #417CAF
tetradic
#AF417C #AFAB41 #41AF74 #4145AF
square
#AF417C #AFAB41 #41AF74 #4145AF
split-complementary
#AF417C #45AF41 #41AFAB
monochromatic
#56203D #82305C #AF417C #C6679A #D793B8

Accessibility & contrast

On white

5.43
#AF417C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF417C
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF417C#FFFFFF#000000##FFFFFF
##AF417C1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505D7E
Deuteranopia (green-blind)
#6E7179
Tritanopia (blue-blind)
#BB3C59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af417c;
/* rgb */ color: rgb(175, 65, 124);
/* oklch */ color: oklch(54.4% 0.156 350.3);
Tailwind
colors: {
  custom: {
    50: '#ca7ca2',
    500: '#af417c',
    950: '#000000',
  },
}
SCSS
$custom: #af417c;
$custom-light: #ca7ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#af417c",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 327.818,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5441,
    "c": 0.15631,
    "h": 350.3
  },
  "luminance": 0.1435
}

Semantic roles & 50–950 ramp

primary
#AF417C
secondary
#89C2A4
accent
#D58F52
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0F
muted
#827C7E

Preview Lab

Preview with #AF417C

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

Preview Lab → · Contrast checker → · Palette generator →

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