#AF337F#AF337F

#AF337F is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.0% C 0.177 H 347.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF337F
RGBrgb(175, 51, 127)
HSLhsl(323, 55%, 44%)
HSVhsv(323, 71%, 69%)
CMYKcmyk(0%, 70.9%, 27.4%, 31.4%)
CIE-LABlab(42.79, 56.80, -14.91)
CIE-LCHlch(42.79, 58.72, 345.29°)
OKLaboklab(53.02% 0.1724 -0.0393)
OKLCHoklch(53.02% 0.177 347.1)
XYZxyz(22.6948, 13.0164, 21.3918)
Luminance0.1301 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF337F #33AF63
analogous
#A133AF #AF337F #AF3341
triadic
#AF337F #7FAF33 #337FAF
tetradic
#AF337F #AFA133 #33AF63 #3341AF
square
#AF337F #AFA133 #33AF63 #3341AF
split-complementary
#AF337F #41AF33 #33AFA1
monochromatic
#50173A #80255D #AF337F #CD529D #DB82B8

Accessibility & contrast

On white

5.83
#AF337F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF337F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF337F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF337F#FFFFFF#000000##FFFFFF
##AF337F1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435781
Deuteranopia (green-blind)
#686D7C
Tritanopia (blue-blind)
#BB2F54
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af337f;
/* rgb */ color: rgb(175, 51, 127);
/* oklch */ color: oklch(53.0% 0.177 347.1);
Tailwind
colors: {
  custom: {
    50: '#cb75a4',
    500: '#af337f',
    950: '#000000',
  },
}
SCSS
$custom: #af337f;
$custom-light: #cb75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af337f",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 323.226,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53016,
    "c": 0.17686,
    "h": 347.1
  },
  "luminance": 0.13014
}

Semantic roles & 50–950 ramp

primary
#AF337F
secondary
#7AC497
accent
#DE834A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AF337F

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

Preview Lab → · Contrast checker → · Palette generator →

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