#AF336E#AF336E

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

Color values

HEX#AF336E
RGBrgb(175, 51, 110)
HSLhsl(331, 55%, 44%)
HSVhsv(331, 71%, 69%)
CMYKcmyk(0%, 70.9%, 37.1%, 31.4%)
CIE-LABlab(42.17, 54.76, -5.34)
CIE-LCHlch(42.17, 55.02, 354.43°)
OKLaboklab(52.36% 0.1678 -0.0134)
OKLCHoklch(52.36% 0.168 355.4)
XYZxyz(21.6789, 12.6100, 16.0412)
Luminance0.1261 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF336E #33AF74
analogous
#AF33AC #AF336E #AF3633
triadic
#AF336E #6EAF33 #336EAF
tetradic
#AF336E #ACAF33 #33AF74 #3633AF
square
#AF336E #ACAF33 #33AF74 #3633AF
split-complementary
#AF336E #33AF36 #33ACAF
monochromatic
#501732 #802550 #AF336E #CD528D #DB82AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF336E#FFFFFF#000000##FFFFFF
##AF336E1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5570
Deuteranopia (green-blind)
#6C6C6B
Tritanopia (blue-blind)
#BD274C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af336e;
/* rgb */ color: rgb(175, 51, 110);
/* oklch */ color: oklch(52.4% 0.168 355.4);
Tailwind
colors: {
  custom: {
    50: '#cb7497',
    500: '#af336e',
    950: '#000000',
  },
}
SCSS
$custom: #af336e;
$custom-light: #cb7497;
$custom-dark: #000000;
JSON
{
  "hex": "#af336e",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 331.452,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5236,
    "c": 0.16834,
    "h": 355.4
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF336E

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

Preview Lab → · Contrast checker → · Palette generator →

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