#AF317A#AF317A

#AF317A is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.6% C 0.177 H 349.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF317A
RGBrgb(175, 49, 122)
HSLhsl(325, 56%, 44%)
HSVhsv(325, 72%, 69%)
CMYKcmyk(0%, 72%, 30.3%, 31.4%)
CIE-LABlab(42.34, 56.90, -12.52)
CIE-LCHlch(42.34, 58.26, 347.59°)
OKLaboklab(52.62% 0.1735 -0.0328)
OKLCHoklch(52.62% 0.177 349.3)
XYZxyz(22.2915, 12.7182, 19.6895)
Luminance0.1272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF317A #31AF66
analogous
#A531AF #AF317A #AF313B
triadic
#AF317A #7AAF31 #317AAF
tetradic
#AF317A #AFA531 #31AF66 #313BAF
square
#AF317A #AFA531 #31AF66 #313BAF
split-complementary
#AF317A #3BAF31 #31AFA5
monochromatic
#4F1637 #7F2459 #AF317A #CE4F99 #DB7FB5

Accessibility & contrast

On white

5.93
#AF317A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF317A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF317A
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF317A#FFFFFF#000000##FFFFFF
##AF317A1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44567C
Deuteranopia (green-blind)
#686C77
Tritanopia (blue-blind)
#BC2B51
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af317a;
/* rgb */ color: rgb(175, 49, 122);
/* oklch */ color: oklch(52.6% 0.177 349.3);
Tailwind
colors: {
  custom: {
    50: '#cb74a0',
    500: '#af317a',
    950: '#000000',
  },
}
SCSS
$custom: #af317a;
$custom-light: #cb74a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af317a",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 325.238,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.17655,
    "h": 349.3
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#AF317A
secondary
#78C498
accent
#E08848
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF317A

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

Preview Lab → · Contrast checker → · Palette generator →

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