#AF336C#AF336C

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

Color values

HEX#AF336C
RGBrgb(175, 51, 108)
HSLhsl(332, 55%, 44%)
HSVhsv(332, 71%, 69%)
CMYKcmyk(0%, 70.9%, 38.3%, 31.4%)
CIE-LABlab(42.10, 54.54, -4.19)
CIE-LCHlch(42.10, 54.70, 355.60°)
OKLaboklab(52.29% 0.1672 -0.0103)
OKLCHoklch(52.29% 0.168 356.5)
XYZxyz(21.5712, 12.5669, 15.4741)
Luminance0.1256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF336C #33AF76
analogous
#AF33AA #AF336C #AF3833
triadic
#AF336C #6CAF33 #336CAF
tetradic
#AF336C #AAAF33 #33AF76 #3833AF
square
#AF336C #AAAF33 #33AF76 #3833AF
split-complementary
#AF336C #33AF38 #33AAAF
monochromatic
#501732 #80254F #AF336C #CD528B #DB82AB

Accessibility & contrast

On white

5.98
#AF336C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF336C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF336C
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF336C#FFFFFF#000000##FFFFFF
##AF336C1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A556E
Deuteranopia (green-blind)
#6D6C69
Tritanopia (blue-blind)
#BD264B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af336c;
/* rgb */ color: rgb(175, 51, 108);
/* oklch */ color: oklch(52.3% 0.168 356.5);
Tailwind
colors: {
  custom: {
    50: '#cb7496',
    500: '#af336c',
    950: '#000000',
  },
}
SCSS
$custom: #af336c;
$custom-light: #cb7496;
$custom-dark: #000000;
JSON
{
  "hex": "#af336c",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 332.419,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52289,
    "c": 0.16751,
    "h": 356.5
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#AF336C
secondary
#7AC4A2
accent
#DE9A4A
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF336C

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

Preview Lab → · Contrast checker → · Palette generator →

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