#AF336B#AF336B

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

Color values

HEX#AF336B
RGBrgb(175, 51, 107)
HSLhsl(333, 55%, 44%)
HSVhsv(333, 71%, 69%)
CMYKcmyk(0%, 70.9%, 38.9%, 31.4%)
CIE-LABlab(42.07, 54.43, -3.62)
CIE-LCHlch(42.07, 54.55, 356.20°)
OKLaboklab(52.26% 0.1669 -0.0088)
OKLCHoklch(52.26% 0.167 357)
XYZxyz(21.5183, 12.5457, 15.1955)
Luminance0.1254 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF336B #33AF77
analogous
#AF33A9 #AF336B #AF3933
triadic
#AF336B #6BAF33 #336BAF
tetradic
#AF336B #A9AF33 #33AF77 #3933AF
square
#AF336B #A9AF33 #33AF77 #3933AF
split-complementary
#AF336B #33AF39 #33A9AF
monochromatic
#501731 #80254E #AF336B #CD528A #DB82AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF336B#FFFFFF#000000##FFFFFF
##AF336B1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B546C
Deuteranopia (green-blind)
#6D6C68
Tritanopia (blue-blind)
#BD254B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af336b;
/* rgb */ color: rgb(175, 51, 107);
/* oklch */ color: oklch(52.3% 0.167 357.0);
Tailwind
colors: {
  custom: {
    50: '#cb7495',
    500: '#af336b',
    950: '#000000',
  },
}
SCSS
$custom: #af336b;
$custom-light: #cb7495;
$custom-dark: #000000;
JSON
{
  "hex": "#af336b",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 332.903,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52255,
    "c": 0.1671,
    "h": 357
  },
  "luminance": 0.12543
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF336B

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

Preview Lab → · Contrast checker → · Palette generator →

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