#AF337A#AF337A

#AF337A is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.8% C 0.174 H 349.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AF337A
RGBrgb(175, 51, 122)
HSLhsl(326, 55%, 44%)
HSVhsv(326, 71%, 69%)
CMYKcmyk(0%, 70.9%, 30.3%, 31.4%)
CIE-LABlab(42.60, 56.17, -12.13)
CIE-LCHlch(42.60, 57.46, 347.82°)
OKLaboklab(52.81% 0.1712 -0.0317)
OKLCHoklch(52.81% 0.174 349.5)
XYZxyz(22.3770, 12.8892, 19.7180)
Luminance0.1289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF337A #33AF68
analogous
#A633AF #AF337A #AF333C
triadic
#AF337A #7AAF33 #337AAF
tetradic
#AF337A #AFA633 #33AF68 #333CAF
square
#AF337A #AFA633 #33AF68 #333CAF
split-complementary
#AF337A #3CAF33 #33AFA6
monochromatic
#501738 #802559 #AF337A #CD5298 #DB82B5

Accessibility & contrast

On white

5.87
#AF337A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF337A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF337A
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF337A#FFFFFF#000000##FFFFFF
##AF337A1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45577C
Deuteranopia (green-blind)
#696D77
Tritanopia (blue-blind)
#BC2D52
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af337a;
/* rgb */ color: rgb(175, 51, 122);
/* oklch */ color: oklch(52.8% 0.174 349.5);
Tailwind
colors: {
  custom: {
    50: '#cb75a0',
    500: '#af337a',
    950: '#000000',
  },
}
SCSS
$custom: #af337a;
$custom-light: #cb75a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af337a",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 325.645,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.17412,
    "h": 349.5
  },
  "luminance": 0.12887
}

Semantic roles & 50–950 ramp

primary
#AF337A
secondary
#7AC49A
accent
#DE894A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF337A

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

Preview Lab → · Contrast checker → · Palette generator →

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