#AF335B#AF335B

#AF335B is a mid, vivid pink. Relative luminance 0.122; OKLCH L 51.7% C 0.162 H 5.3°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AF335B
RGBrgb(175, 51, 91)
HSLhsl(341, 55%, 44%)
HSVhsv(341, 71%, 69%)
CMYKcmyk(0%, 70.9%, 48%, 31.4%)
CIE-LABlab(41.59, 52.83, 5.69)
CIE-LCHlch(41.59, 53.14, 6.15°)
OKLaboklab(51.75% 0.1613 0.0151)
OKLCHoklch(51.75% 0.162 5.3)
XYZxyz(20.7530, 12.2396, 11.1652)
Luminance0.1224 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF335B #33AF87
analogous
#AF3399 #AF335B #AF4933
triadic
#AF335B #5BAF33 #335BAF
tetradic
#AF335B #99AF33 #33AF87 #4933AF
square
#AF335B #99AF33 #33AF87 #4933AF
split-complementary
#AF335B #33AF49 #3399AF
monochromatic
#50172A #802542 #AF335B #CD527A #DB829E

Accessibility & contrast

On white

6.09
#AF335B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF335B
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF335B#FFFFFF#000000##FFFFFF
##AF335B1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F535C
Deuteranopia (green-blind)
#706B58
Tritanopia (blue-blind)
#BE1E43
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af335b;
/* rgb */ color: rgb(175, 51, 91);
/* oklch */ color: oklch(51.7% 0.162 5.3);
Tailwind
colors: {
  custom: {
    50: '#cc7489',
    500: '#af335b',
    950: '#000000',
  },
}
SCSS
$custom: #af335b;
$custom-light: #cc7489;
$custom-dark: #000000;
JSON
{
  "hex": "#af335b",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 91
  },
  "hsl": {
    "h": 340.645,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51747,
    "c": 0.16202,
    "h": 5.3
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#AF335B
secondary
#7AC4AC
accent
#DEAE4A
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF335B

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

Preview Lab → · Contrast checker → · Palette generator →

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