#AF317D#AF317D

#AF317D is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.7% C 0.178 H 347.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AF317D
RGBrgb(175, 49, 125)
HSLhsl(324, 56%, 44%)
HSVhsv(324, 72%, 69%)
CMYKcmyk(0%, 72%, 28.6%, 31.4%)
CIE-LABlab(42.45, 57.27, -14.19)
CIE-LCHlch(42.45, 59.00, 346.08°)
OKLaboklab(52.74% 0.1742 -0.0373)
OKLCHoklch(52.74% 0.178 347.9)
XYZxyz(22.4802, 12.7937, 20.6836)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF317D #31AF63
analogous
#A231AF #AF317D #AF313E
triadic
#AF317D #7DAF31 #317DAF
tetradic
#AF317D #AFA231 #31AF63 #313EAF
square
#AF317D #AFA231 #31AF63 #313EAF
split-complementary
#AF317D #3EAF31 #31AFA2
monochromatic
#4F1639 #7F245B #AF317D #CE4F9C #DB7FB7

Accessibility & contrast

On white

5.90
#AF317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF317D
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF317D#FFFFFF#000000##FFFFFF
##AF317D1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567F
Deuteranopia (green-blind)
#686C7A
Tritanopia (blue-blind)
#BB2C53
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af317d;
/* rgb */ color: rgb(175, 49, 125);
/* oklch */ color: oklch(52.7% 0.178 347.9);
Tailwind
colors: {
  custom: {
    50: '#cb74a2',
    500: '#af317d',
    950: '#000000',
  },
}
SCSS
$custom: #af317d;
$custom-light: #cb74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af317d",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 323.81,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52744,
    "c": 0.17817,
    "h": 347.9
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#AF317D
secondary
#78C496
accent
#E08448
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF317D

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

Preview Lab → · Contrast checker → · Palette generator →

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