#AF337D#AF337D

#AF337D is a mid, vivid pink. Relative luminance 0.130; OKLCH L 52.9% C 0.176 H 348.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF337D
RGBrgb(175, 51, 125)
HSLhsl(324, 55%, 44%)
HSVhsv(324, 71%, 69%)
CMYKcmyk(0%, 70.9%, 28.6%, 31.4%)
CIE-LABlab(42.71, 56.54, -13.80)
CIE-LCHlch(42.71, 58.20, 346.29°)
OKLaboklab(52.93% 0.172 -0.0363)
OKLCHoklch(52.93% 0.176 348.1)
XYZxyz(22.5658, 12.9647, 20.7121)
Luminance0.1296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF337D #33AF65
analogous
#A333AF #AF337D #AF333F
triadic
#AF337D #7DAF33 #337DAF
tetradic
#AF337D #AFA333 #33AF65 #333FAF
square
#AF337D #AFA333 #33AF65 #333FAF
split-complementary
#AF337D #3FAF33 #33AFA3
monochromatic
#501739 #80255B #AF337D #CD529B #DB82B7

Accessibility & contrast

On white

5.85
#AF337D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF337D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF337D
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF337D#FFFFFF#000000##FFFFFF
##AF337D1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44577F
Deuteranopia (green-blind)
#686D7A
Tritanopia (blue-blind)
#BB2E53
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af337d;
/* rgb */ color: rgb(175, 51, 125);
/* oklch */ color: oklch(52.9% 0.176 348.1);
Tailwind
colors: {
  custom: {
    50: '#cb75a2',
    500: '#af337d',
    950: '#000000',
  },
}
SCSS
$custom: #af337d;
$custom-light: #cb75a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af337d",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 324.194,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52933,
    "c": 0.17575,
    "h": 348.1
  },
  "luminance": 0.12962
}

Semantic roles & 50–950 ramp

primary
#AF337D
secondary
#7AC498
accent
#DE864A
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF337D

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

Preview Lab → · Contrast checker → · Palette generator →

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