#AF316C#AF316C

#AF316C is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.1% C 0.170 H 356.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF316C
RGBrgb(175, 49, 108)
HSLhsl(332, 56%, 44%)
HSVhsv(332, 72%, 69%)
CMYKcmyk(0%, 72%, 38.3%, 31.4%)
CIE-LABlab(41.84, 55.28, -4.58)
CIE-LCHlch(41.84, 55.47, 355.26°)
OKLaboklab(52.09% 0.1695 -0.0114)
OKLCHoklch(52.09% 0.17 356.2)
XYZxyz(21.4857, 12.3959, 15.4456)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF316C #31AF74
analogous
#AF31AB #AF316C #AF3531
triadic
#AF316C #6CAF31 #316CAF
tetradic
#AF316C #ABAF31 #31AF74 #3531AF
square
#AF316C #ABAF31 #31AF74 #3531AF
split-complementary
#AF316C #31AF35 #31ABAF
monochromatic
#4F1631 #7F244E #AF316C #CE4F8B #DB7FAA

Accessibility & contrast

On white

6.04
#AF316C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF316C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF316C
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF316C#FFFFFF#000000##FFFFFF
##AF316C1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49546E
Deuteranopia (green-blind)
#6C6B69
Tritanopia (blue-blind)
#BD234A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af316c;
/* rgb */ color: rgb(175, 49, 108);
/* oklch */ color: oklch(52.1% 0.170 356.2);
Tailwind
colors: {
  custom: {
    50: '#cc7496',
    500: '#af316c',
    950: '#000000',
  },
}
SCSS
$custom: #af316c;
$custom-light: #cc7496;
$custom-dark: #000000;
JSON
{
  "hex": "#af316c",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 331.905,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52094,
    "c": 0.16991,
    "h": 356.2
  },
  "luminance": 0.12393
}

Semantic roles & 50–950 ramp

primary
#AF316C
secondary
#78C4A0
accent
#E09948
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF316C

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

Preview Lab → · Contrast checker → · Palette generator →

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