#AF337B#AF337B

#AF337B is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.175 H 349.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF337B
RGBrgb(175, 51, 123)
HSLhsl(325, 55%, 44%)
HSVhsv(325, 71%, 69%)
CMYKcmyk(0%, 70.9%, 29.7%, 31.4%)
CIE-LABlab(42.63, 56.29, -12.68)
CIE-LCHlch(42.63, 57.71, 347.30°)
OKLaboklab(52.85% 0.1715 -0.0332)
OKLCHoklch(52.85% 0.175 349)
XYZxyz(22.4393, 12.9141, 20.0460)
Luminance0.1291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF337B #33AF67
analogous
#A533AF #AF337B #AF333D
triadic
#AF337B #7BAF33 #337BAF
tetradic
#AF337B #AFA533 #33AF67 #333DAF
square
#AF337B #AFA533 #33AF67 #333DAF
split-complementary
#AF337B #3DAF33 #33AFA5
monochromatic
#501738 #80255A #AF337B #CD5299 #DB82B5

Accessibility & contrast

On white

5.86
#AF337B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF337B
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF337B#FFFFFF#000000##FFFFFF
##AF337B1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af337b;
/* rgb */ color: rgb(175, 51, 123);
/* oklch */ color: oklch(52.9% 0.175 349.0);
Tailwind
colors: {
  custom: {
    50: '#cb75a1',
    500: '#af337b',
    950: '#000000',
  },
}
SCSS
$custom: #af337b;
$custom-light: #cb75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af337b",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 325.161,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52852,
    "c": 0.17465,
    "h": 349
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#AF337B
secondary
#7AC499
accent
#DE884A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF337B

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

Preview Lab → · Contrast checker → · Palette generator →

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