#AF336D#AF336D

#AF336D is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.3% C 0.168 H 355.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF336D
RGBrgb(175, 51, 109)
HSLhsl(332, 55%, 44%)
HSVhsv(332, 71%, 69%)
CMYKcmyk(0%, 70.9%, 37.7%, 31.4%)
CIE-LABlab(42.14, 54.65, -4.77)
CIE-LCHlch(42.14, 54.86, 355.02°)
OKLaboklab(52.32% 0.1675 -0.0119)
OKLCHoklch(52.32% 0.168 355.9)
XYZxyz(21.6247, 12.5883, 15.7560)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF336D #33AF75
analogous
#AF33AB #AF336D #AF3733
triadic
#AF336D #6DAF33 #336DAF
tetradic
#AF336D #ABAF33 #33AF75 #3733AF
square
#AF336D #ABAF33 #33AF75 #3733AF
split-complementary
#AF336D #33AF37 #33ABAF
monochromatic
#501732 #80254F #AF336D #CD528C #DB82AB

Accessibility & contrast

On white

5.97
#AF336D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF336D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF336D
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF336D#FFFFFF#000000##FFFFFF
##AF336D1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A556F
Deuteranopia (green-blind)
#6C6C6A
Tritanopia (blue-blind)
#BD264C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af336d;
/* rgb */ color: rgb(175, 51, 109);
/* oklch */ color: oklch(52.3% 0.168 355.9);
Tailwind
colors: {
  custom: {
    50: '#cb7496',
    500: '#af336d',
    950: '#000000',
  },
}
SCSS
$custom: #af336d;
$custom-light: #cb7496;
$custom-dark: #000000;
JSON
{
  "hex": "#af336d",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 331.935,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52324,
    "c": 0.16792,
    "h": 355.9
  },
  "luminance": 0.12586
}

Semantic roles & 50–950 ramp

primary
#AF336D
secondary
#7AC4A1
accent
#DE994A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF336D

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

Preview Lab → · Contrast checker → · Palette generator →

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