#AF417E#AF417E

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

Color values

HEX#AF417E
RGBrgb(175, 65, 126)
HSLhsl(327, 46%, 47%)
HSVhsv(327, 63%, 69%)
CMYKcmyk(0%, 62.9%, 28%, 31.4%)
CIE-LABlab(44.81, 51.00, -11.24)
CIE-LCHlch(44.81, 52.22, 347.57°)
OKLaboklab(54.49% 0.1546 -0.0294)
OKLCHoklch(54.49% 0.157 349.2)
XYZxyz(23.3364, 14.4033, 21.2857)
Luminance0.1440 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF417E #41AF72
analogous
#A941AF #AF417E #AF4147
triadic
#AF417E #7EAF41 #417EAF
tetradic
#AF417E #AFA941 #41AF72 #4147AF
square
#AF417E #AFA941 #41AF72 #4147AF
split-complementary
#AF417E #47AF41 #41AFA9
monochromatic
#56203E #82305E #AF417E #C6679C #D793B9

Accessibility & contrast

On white

5.41
#AF417E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF417E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF417E
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF417E#FFFFFF#000000##FFFFFF
##AF417E1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af417e;
/* rgb */ color: rgb(175, 65, 126);
/* oklch */ color: oklch(54.5% 0.157 349.2);
Tailwind
colors: {
  custom: {
    50: '#ca7ca3',
    500: '#af417e',
    950: '#000000',
  },
}
SCSS
$custom: #af417e;
$custom-light: #ca7ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#af417e",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 326.727,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54487,
    "c": 0.15739,
    "h": 349.2
  },
  "luminance": 0.14401
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF417E

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

Preview Lab → · Contrast checker → · Palette generator →

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