#AF335C#AF335C

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

Color values

HEX#AF335C
RGBrgb(175, 51, 92)
HSLhsl(340, 55%, 44%)
HSVhsv(340, 71%, 69%)
CMYKcmyk(0%, 70.9%, 47.4%, 31.4%)
CIE-LABlab(41.62, 52.92, 5.10)
CIE-LCHlch(41.62, 53.17, 5.51°)
OKLaboklab(51.78% 0.1617 0.0136)
OKLCHoklch(51.78% 0.162 4.8)
XYZxyz(20.7965, 12.2570, 11.3939)
Luminance0.1225 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF335C #33AF86
analogous
#AF339A #AF335C #AF4833
triadic
#AF335C #5CAF33 #335CAF
tetradic
#AF335C #9AAF33 #33AF86 #4833AF
square
#AF335C #9AAF33 #33AF86 #4833AF
split-complementary
#AF335C #33AF48 #339AAF
monochromatic
#50172A #802543 #AF335C #CD527B #DB829F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF335C#FFFFFF#000000##FFFFFF
##AF335C1.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)
#4F535D
Deuteranopia (green-blind)
#706B59
Tritanopia (blue-blind)
#BE1E44
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af335c;
/* rgb */ color: rgb(175, 51, 92);
/* oklch */ color: oklch(51.8% 0.162 4.8);
Tailwind
colors: {
  custom: {
    50: '#cc7489',
    500: '#af335c',
    950: '#000000',
  },
}
SCSS
$custom: #af335c;
$custom-light: #cc7489;
$custom-dark: #000000;
JSON
{
  "hex": "#af335c",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 340.161,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51776,
    "c": 0.16226,
    "h": 4.8
  },
  "luminance": 0.12254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF335C

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

Preview Lab → · Contrast checker → · Palette generator →

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