#AF417B#AF417B

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

Color values

HEX#AF417B
RGBrgb(175, 65, 123)
HSLhsl(328, 46%, 47%)
HSVhsv(328, 63%, 69%)
CMYKcmyk(0%, 62.9%, 29.7%, 31.4%)
CIE-LABlab(44.70, 50.60, -9.57)
CIE-LCHlch(44.70, 51.50, 349.29°)
OKLaboklab(54.37% 0.1538 -0.0248)
OKLCHoklch(54.37% 0.156 350.8)
XYZxyz(23.1457, 14.3270, 20.2815)
Luminance0.1432 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF417B #41AF75
analogous
#AC41AF #AF417B #AF4144
triadic
#AF417B #7BAF41 #417BAF
tetradic
#AF417B #AFAC41 #41AF75 #4144AF
square
#AF417B #AFAC41 #41AF75 #4144AF
split-complementary
#AF417B #44AF41 #41AFAC
monochromatic
#56203C #82305C #AF417B #C66799 #D793B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF417B#FFFFFF#000000##FFFFFF
##AF417B1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af417b;
/* rgb */ color: rgb(175, 65, 123);
/* oklch */ color: oklch(54.4% 0.156 350.8);
Tailwind
colors: {
  custom: {
    50: '#ca7ca1',
    500: '#af417b',
    950: '#000000',
  },
}
SCSS
$custom: #af417b;
$custom-light: #ca7ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#af417b",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 328.364,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54372,
    "c": 0.15577,
    "h": 350.8
  },
  "luminance": 0.14325
}

Semantic roles & 50–950 ramp

primary
#AF417B
secondary
#89C2A4
accent
#D59052
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF417B

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

Preview Lab → · Contrast checker → · Palette generator →

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