#AF335D#AF335D

#AF335D is a mid, vivid pink. Relative luminance 0.123; OKLCH L 51.8% C 0.163 H 4.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF335D
RGBrgb(175, 51, 93)
HSLhsl(340, 55%, 44%)
HSVhsv(340, 71%, 69%)
CMYKcmyk(0%, 70.9%, 46.9%, 31.4%)
CIE-LABlab(41.65, 53.02, 4.51)
CIE-LCHlch(41.65, 53.21, 4.87°)
OKLaboklab(51.81% 0.1621 0.0121)
OKLCHoklch(51.81% 0.163 4.3)
XYZxyz(20.8405, 12.2746, 11.6256)
Luminance0.1227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF335D #33AF85
analogous
#AF339B #AF335D #AF4733
triadic
#AF335D #5DAF33 #335DAF
tetradic
#AF335D #9BAF33 #33AF85 #4733AF
square
#AF335D #9BAF33 #33AF85 #4733AF
split-complementary
#AF335D #33AF47 #339BAF
monochromatic
#50172B #802544 #AF335D #CD527C #DB82A0

Accessibility & contrast

On white

6.08
#AF335D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF335D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF335D
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF335D#FFFFFF#000000##FFFFFF
##AF335D1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F535E
Deuteranopia (green-blind)
#706B5A
Tritanopia (blue-blind)
#BE1F44
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af335d;
/* rgb */ color: rgb(175, 51, 93);
/* oklch */ color: oklch(51.8% 0.163 4.3);
Tailwind
colors: {
  custom: {
    50: '#cc748a',
    500: '#af335d',
    950: '#000000',
  },
}
SCSS
$custom: #af335d;
$custom-light: #cc748a;
$custom-dark: #000000;
JSON
{
  "hex": "#af335d",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 93
  },
  "hsl": {
    "h": 339.677,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.16251,
    "h": 4.3
  },
  "luminance": 0.12272
}

Semantic roles & 50–950 ramp

primary
#AF335D
secondary
#7AC4AB
accent
#DEAC4A
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF335D

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

Preview Lab → · Contrast checker → · Palette generator →

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