#AF336A#AF336A

#AF336A is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.2% C 0.167 H 357.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF336A
RGBrgb(175, 51, 106)
HSLhsl(333, 55%, 44%)
HSVhsv(333, 71%, 69%)
CMYKcmyk(0%, 70.9%, 39.4%, 31.4%)
CIE-LABlab(42.04, 54.33, -3.04)
CIE-LCHlch(42.04, 54.41, 356.79°)
OKLaboklab(52.22% 0.1666 -0.0073)
OKLCHoklch(52.22% 0.167 357.5)
XYZxyz(21.4660, 12.5248, 14.9200)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF336A #33AF78
analogous
#AF33A8 #AF336A #AF3A33
triadic
#AF336A #6AAF33 #336AAF
tetradic
#AF336A #A8AF33 #33AF78 #3A33AF
square
#AF336A #A8AF33 #33AF78 #3A33AF
split-complementary
#AF336A #33AF3A #33A8AF
monochromatic
#501731 #80254D #AF336A #CD5289 #DB82A9

Accessibility & contrast

On white

5.99
#AF336A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF336A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF336A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF336A#FFFFFF#000000##FFFFFF
##AF336A1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B546B
Deuteranopia (green-blind)
#6D6C67
Tritanopia (blue-blind)
#BD254A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af336a;
/* rgb */ color: rgb(175, 51, 106);
/* oklch */ color: oklch(52.2% 0.167 357.5);
Tailwind
colors: {
  custom: {
    50: '#cc7494',
    500: '#af336a',
    950: '#000000',
  },
}
SCSS
$custom: #af336a;
$custom-light: #cc7494;
$custom-dark: #000000;
JSON
{
  "hex": "#af336a",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 333.387,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5222,
    "c": 0.16671,
    "h": 357.5
  },
  "luminance": 0.12522
}

Semantic roles & 50–950 ramp

primary
#AF336A
secondary
#7AC4A3
accent
#DE9C4A
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF336A

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

Preview Lab → · Contrast checker → · Palette generator →

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