#AF3161#AF3161

#AF3161 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 51.7% C 0.166 H 1.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF3161
RGBrgb(175, 49, 97)
HSLhsl(337, 56%, 44%)
HSVhsv(337, 72%, 69%)
CMYKcmyk(0%, 72%, 44.6%, 31.4%)
CIE-LABlab(41.49, 54.14, 1.78)
CIE-LCHlch(41.49, 54.17, 1.89°)
OKLaboklab(51.73% 0.1659 0.0052)
OKLCHoklch(51.73% 0.166 1.8)
XYZxyz(20.9368, 12.1763, 12.5547)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3161 #31AF7F
analogous
#AF31A0 #AF3161 #AF4031
triadic
#AF3161 #61AF31 #3161AF
tetradic
#AF3161 #A0AF31 #31AF7F #4031AF
square
#AF3161 #A0AF31 #31AF7F #4031AF
split-complementary
#AF3161 #31AF40 #31A0AF
monochromatic
#4F162C #7F2446 #AF3161 #CE4F80 #DB7FA2

Accessibility & contrast

On white

6.11
#AF3161 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF3161 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3161
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3161#FFFFFF#000000##FFFFFF
##AF31611.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5262
Deuteranopia (green-blind)
#6E6B5E
Tritanopia (blue-blind)
#BE1D45
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af3161;
/* rgb */ color: rgb(175, 49, 97);
/* oklch */ color: oklch(51.7% 0.166 1.8);
Tailwind
colors: {
  custom: {
    50: '#cc738d',
    500: '#af3161',
    950: '#000000',
  },
}
SCSS
$custom: #af3161;
$custom-light: #cc738d;
$custom-dark: #000000;
JSON
{
  "hex": "#af3161",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 337.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51729,
    "c": 0.16596,
    "h": 1.8
  },
  "luminance": 0.12174
}

Semantic roles & 50–950 ramp

primary
#AF3161
secondary
#78C4A7
accent
#E0A648
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF3161

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

Preview Lab → · Contrast checker → · Palette generator →

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