#AF316B#AF316B

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

Color values

HEX#AF316B
RGBrgb(175, 49, 107)
HSLhsl(332, 56%, 44%)
HSVhsv(332, 72%, 69%)
CMYKcmyk(0%, 72%, 38.9%, 31.4%)
CIE-LABlab(41.81, 55.17, -4.01)
CIE-LCHlch(41.81, 55.32, 355.84°)
OKLaboklab(52.06% 0.1692 -0.0098)
OKLCHoklch(52.06% 0.17 356.7)
XYZxyz(21.4328, 12.3747, 15.1670)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF316B #31AF75
analogous
#AF31AA #AF316B #AF3631
triadic
#AF316B #6BAF31 #316BAF
tetradic
#AF316B #AAAF31 #31AF75 #3631AF
square
#AF316B #AAAF31 #31AF75 #3631AF
split-complementary
#AF316B #31AF36 #31AAAF
monochromatic
#4F1631 #7F244E #AF316B #CE4F8A #DB7FAA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF316B#FFFFFF#000000##FFFFFF
##AF316B1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af316b;
/* rgb */ color: rgb(175, 49, 107);
/* oklch */ color: oklch(52.1% 0.170 356.7);
Tailwind
colors: {
  custom: {
    50: '#cc7395',
    500: '#af316b',
    950: '#000000',
  },
}
SCSS
$custom: #af316b;
$custom-light: #cc7395;
$custom-dark: #000000;
JSON
{
  "hex": "#af316b",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 332.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52059,
    "c": 0.1695,
    "h": 356.7
  },
  "luminance": 0.12372
}

Semantic roles & 50–950 ramp

primary
#AF316B
secondary
#78C4A1
accent
#E09A48
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF316B

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

Preview Lab → · Contrast checker → · Palette generator →

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