#AF336F#AF336F

#AF336F is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.4% C 0.169 H 354.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF336F
RGBrgb(175, 51, 111)
HSLhsl(331, 55%, 44%)
HSVhsv(331, 71%, 69%)
CMYKcmyk(0%, 70.9%, 36.6%, 31.4%)
CIE-LABlab(42.20, 54.87, -5.91)
CIE-LCHlch(42.20, 55.19, 353.85°)
OKLaboklab(52.4% 0.1681 -0.0149)
OKLCHoklch(52.4% 0.169 354.9)
XYZxyz(21.7336, 12.6319, 16.3295)
Luminance0.1263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF336F #33AF73
analogous
#AF33AD #AF336F #AF3533
triadic
#AF336F #6FAF33 #336FAF
tetradic
#AF336F #ADAF33 #33AF73 #3533AF
square
#AF336F #ADAF33 #33AF73 #3533AF
split-complementary
#AF336F #33AF35 #33ADAF
monochromatic
#501733 #802551 #AF336F #CD528E #DB82AD

Accessibility & contrast

On white

5.96
#AF336F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF336F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF336F
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF336F#FFFFFF#000000##FFFFFF
##AF336F1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5571
Deuteranopia (green-blind)
#6C6C6C
Tritanopia (blue-blind)
#BD274C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af336f;
/* rgb */ color: rgb(175, 51, 111);
/* oklch */ color: oklch(52.4% 0.169 354.9);
Tailwind
colors: {
  custom: {
    50: '#cb7598',
    500: '#af336f',
    950: '#000000',
  },
}
SCSS
$custom: #af336f;
$custom-light: #cb7598;
$custom-dark: #000000;
JSON
{
  "hex": "#af336f",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 330.968,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52396,
    "c": 0.16878,
    "h": 354.9
  },
  "luminance": 0.12629
}

Semantic roles & 50–950 ramp

primary
#AF336F
secondary
#7AC4A0
accent
#DE964A
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF336F

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

Preview Lab → · Contrast checker → · Palette generator →

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