#AF316F#AF316F

#AF316F is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.2% C 0.171 H 354.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF316F
RGBrgb(175, 49, 111)
HSLhsl(330, 56%, 44%)
HSVhsv(330, 72%, 69%)
CMYKcmyk(0%, 72%, 36.6%, 31.4%)
CIE-LABlab(41.94, 55.61, -6.30)
CIE-LCHlch(41.94, 55.97, 353.53°)
OKLaboklab(52.2% 0.1704 -0.0159)
OKLCHoklch(52.2% 0.171 354.7)
XYZxyz(21.6481, 12.4609, 16.3010)
Luminance0.1246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF316F #31AF71
analogous
#AF31AE #AF316F #AF3231
triadic
#AF316F #6FAF31 #316FAF
tetradic
#AF316F #AEAF31 #31AF71 #3231AF
square
#AF316F #AEAF31 #31AF71 #3231AF
split-complementary
#AF316F #31AF32 #31AEAF
monochromatic
#4F1632 #7F2451 #AF316F #CE4F8E #DB7FAC

Accessibility & contrast

On white

6.01
#AF316F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AF316F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF316F
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF316F#FFFFFF#000000##FFFFFF
##AF316F1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485471
Deuteranopia (green-blind)
#6B6B6C
Tritanopia (blue-blind)
#BD254C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af316f;
/* rgb */ color: rgb(175, 49, 111);
/* oklch */ color: oklch(52.2% 0.171 354.7);
Tailwind
colors: {
  custom: {
    50: '#cb7498',
    500: '#af316f',
    950: '#000000',
  },
}
SCSS
$custom: #af316f;
$custom-light: #cb7498;
$custom-dark: #000000;
JSON
{
  "hex": "#af316f",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 330.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52202,
    "c": 0.17118,
    "h": 354.7
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#AF316F
secondary
#78C49F
accent
#E09548
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF316F

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

Preview Lab → · Contrast checker → · Palette generator →

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