#AF316D#AF316D

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

Color values

HEX#AF316D
RGBrgb(175, 49, 109)
HSLhsl(331, 56%, 44%)
HSVhsv(331, 72%, 69%)
CMYKcmyk(0%, 72%, 37.7%, 31.4%)
CIE-LABlab(41.87, 55.39, -5.16)
CIE-LCHlch(41.87, 55.63, 354.68°)
OKLaboklab(52.13% 0.1698 -0.0129)
OKLCHoklch(52.13% 0.17 355.7)
XYZxyz(21.5392, 12.4173, 15.7275)
Luminance0.1241 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF316D #31AF73
analogous
#AF31AC #AF316D #AF3431
triadic
#AF316D #6DAF31 #316DAF
tetradic
#AF316D #ACAF31 #31AF73 #3431AF
square
#AF316D #ACAF31 #31AF73 #3431AF
split-complementary
#AF316D #31AF34 #31ACAF
monochromatic
#4F1631 #7F244F #AF316D #CE4F8C #DB7FAB

Accessibility & contrast

On white

6.03
#AF316D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF316D
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF316D#FFFFFF#000000##FFFFFF
##AF316D1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49546F
Deuteranopia (green-blind)
#6C6B6A
Tritanopia (blue-blind)
#BD244B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af316d;
/* rgb */ color: rgb(175, 49, 109);
/* oklch */ color: oklch(52.1% 0.170 355.7);
Tailwind
colors: {
  custom: {
    50: '#cb7496',
    500: '#af316d',
    950: '#000000',
  },
}
SCSS
$custom: #af316d;
$custom-light: #cb7496;
$custom-dark: #000000;
JSON
{
  "hex": "#af316d",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 109
  },
  "hsl": {
    "h": 331.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5213,
    "c": 0.17033,
    "h": 355.7
  },
  "luminance": 0.12415
}

Semantic roles & 50–950 ramp

primary
#AF316D
secondary
#78C4A0
accent
#E09848
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF316D

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

Preview Lab → · Contrast checker → · Palette generator →

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