#AF317E#AF317E

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

Color values

HEX#AF317E
RGBrgb(175, 49, 126)
HSLhsl(323, 56%, 44%)
HSVhsv(323, 72%, 69%)
CMYKcmyk(0%, 72%, 28%, 31.4%)
CIE-LABlab(42.49, 57.40, -14.75)
CIE-LCHlch(42.49, 59.26, 345.59°)
OKLaboklab(52.79% 0.1745 -0.0389)
OKLCHoklch(52.79% 0.179 347.4)
XYZxyz(22.5444, 12.8194, 21.0218)
Luminance0.1282 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF317E #31AF62
analogous
#A131AF #AF317E #AF313F
triadic
#AF317E #7EAF31 #317EAF
tetradic
#AF317E #AFA131 #31AF62 #313FAF
square
#AF317E #AFA131 #31AF62 #313FAF
split-complementary
#AF317E #3FAF31 #31AFA1
monochromatic
#4F1639 #7F245C #AF317E #CE4F9D #DB7FB7

Accessibility & contrast

On white

5.89
#AF317E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF317E
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF317E#FFFFFF#000000##FFFFFF
##AF317E1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425680
Deuteranopia (green-blind)
#676C7B
Tritanopia (blue-blind)
#BB2D53
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af317e;
/* rgb */ color: rgb(175, 49, 126);
/* oklch */ color: oklch(52.8% 0.179 347.4);
Tailwind
colors: {
  custom: {
    50: '#cb74a3',
    500: '#af317e',
    950: '#000000',
  },
}
SCSS
$custom: #af317e;
$custom-light: #cb74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af317e",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 323.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52785,
    "c": 0.17873,
    "h": 347.4
  },
  "luminance": 0.12817
}

Semantic roles & 50–950 ramp

primary
#AF317E
secondary
#78C495
accent
#E08348
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF317E

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

Preview Lab → · Contrast checker → · Palette generator →

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