#AF317F#AF317F

#AF317F is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.8% C 0.179 H 347.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF317F
RGBrgb(175, 49, 127)
HSLhsl(323, 56%, 44%)
HSVhsv(323, 72%, 69%)
CMYKcmyk(0%, 72%, 27.4%, 31.4%)
CIE-LABlab(42.53, 57.52, -15.30)
CIE-LCHlch(42.53, 59.52, 345.10°)
OKLaboklab(52.83% 0.1747 -0.0404)
OKLCHoklch(52.83% 0.179 347)
XYZxyz(22.6093, 12.8453, 21.3633)
Luminance0.1284 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF317F #31AF61
analogous
#A031AF #AF317F #AF3140
triadic
#AF317F #7FAF31 #317FAF
tetradic
#AF317F #AFA031 #31AF61 #3140AF
square
#AF317F #AFA031 #31AF61 #3140AF
split-complementary
#AF317F #40AF31 #31AFA0
monochromatic
#4F163A #7F245C #AF317F #CE4F9E #DB7FB8

Accessibility & contrast

On white

5.88
#AF317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF317F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF317F#FFFFFF#000000##FFFFFF
##AF317F1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425781
Deuteranopia (green-blind)
#676C7C
Tritanopia (blue-blind)
#BB2D54
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af317f;
/* rgb */ color: rgb(175, 49, 127);
/* oklch */ color: oklch(52.8% 0.179 347.0);
Tailwind
colors: {
  custom: {
    50: '#cb74a4',
    500: '#af317f',
    950: '#000000',
  },
}
SCSS
$custom: #af317f;
$custom-light: #cb74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af317f",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 322.857,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52827,
    "c": 0.1793,
    "h": 347
  },
  "luminance": 0.12843
}

Semantic roles & 50–950 ramp

primary
#AF317F
secondary
#78C495
accent
#E08248
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF317F

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

Preview Lab → · Contrast checker → · Palette generator →

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