#AF337C#AF337C

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

Color values

HEX#AF337C
RGBrgb(175, 51, 124)
HSLhsl(325, 55%, 44%)
HSVhsv(325, 71%, 69%)
CMYKcmyk(0%, 70.9%, 29.1%, 31.4%)
CIE-LABlab(42.67, 56.42, -13.24)
CIE-LCHlch(42.67, 57.95, 346.79°)
OKLaboklab(52.89% 0.1717 -0.0348)
OKLCHoklch(52.89% 0.175 348.6)
XYZxyz(22.5022, 12.9393, 20.3774)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF337C #33AF66
analogous
#A433AF #AF337C #AF333E
triadic
#AF337C #7CAF33 #337CAF
tetradic
#AF337C #AFA433 #33AF66 #333EAF
square
#AF337C #AFA433 #33AF66 #333EAF
split-complementary
#AF337C #3EAF33 #33AFA4
monochromatic
#501739 #80255A #AF337C #CD529A #DB82B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF337C#FFFFFF#000000##FFFFFF
##AF337C1.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)
#45577E
Deuteranopia (green-blind)
#696D79
Tritanopia (blue-blind)
#BB2E53
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af337c;
/* rgb */ color: rgb(175, 51, 124);
/* oklch */ color: oklch(52.9% 0.175 348.6);
Tailwind
colors: {
  custom: {
    50: '#cb75a2',
    500: '#af337c',
    950: '#000000',
  },
}
SCSS
$custom: #af337c;
$custom-light: #cb75a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af337c",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 324.677,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52893,
    "c": 0.17519,
    "h": 348.6
  },
  "luminance": 0.12937
}

Semantic roles & 50–950 ramp

primary
#AF337C
secondary
#7AC498
accent
#DE874A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF337C

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

Preview Lab → · Contrast checker → · Palette generator →

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