#AF316A#AF316A

#AF316A is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.0% C 0.169 H 357.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AF316A
RGBrgb(175, 49, 106)
HSLhsl(333, 56%, 44%)
HSVhsv(333, 72%, 69%)
CMYKcmyk(0%, 72%, 39.4%, 31.4%)
CIE-LABlab(41.77, 55.06, -3.44)
CIE-LCHlch(41.77, 55.17, 356.43°)
OKLaboklab(52.03% 0.1689 -0.0083)
OKLCHoklch(52.03% 0.169 357.2)
XYZxyz(21.3805, 12.3538, 14.8915)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF316A #31AF76
analogous
#AF31A9 #AF316A #AF3731
triadic
#AF316A #6AAF31 #316AAF
tetradic
#AF316A #A9AF31 #31AF76 #3731AF
square
#AF316A #A9AF31 #31AF76 #3731AF
split-complementary
#AF316A #31AF37 #31A9AF
monochromatic
#4F1630 #7F244D #AF316A #CE4F89 #DB7FA9

Accessibility & contrast

On white

6.05
#AF316A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF316A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF316A
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF316A#FFFFFF#000000##FFFFFF
##AF316A1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A536B
Deuteranopia (green-blind)
#6C6B67
Tritanopia (blue-blind)
#BD2249
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af316a;
/* rgb */ color: rgb(175, 49, 106);
/* oklch */ color: oklch(52.0% 0.169 357.2);
Tailwind
colors: {
  custom: {
    50: '#cc7394',
    500: '#af316a',
    950: '#000000',
  },
}
SCSS
$custom: #af316a;
$custom-light: #cc7394;
$custom-dark: #000000;
JSON
{
  "hex": "#af316a",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 332.857,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52025,
    "c": 0.16911,
    "h": 357.2
  },
  "luminance": 0.12351
}

Semantic roles & 50–950 ramp

primary
#AF316A
secondary
#78C4A2
accent
#E09B48
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF316A

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

Preview Lab → · Contrast checker → · Palette generator →

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