#AF335A#AF335A

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

Color values

HEX#AF335A
RGBrgb(175, 51, 90)
HSLhsl(341, 55%, 44%)
HSVhsv(341, 71%, 69%)
CMYKcmyk(0%, 70.9%, 48.6%, 31.4%)
CIE-LABlab(41.57, 52.74, 6.28)
CIE-LCHlch(41.57, 53.11, 6.79°)
OKLaboklab(51.72% 0.161 0.0165)
OKLCHoklch(51.72% 0.162 5.9)
XYZxyz(20.7102, 12.2225, 10.9395)
Luminance0.1222 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF335A #33AF88
analogous
#AF3398 #AF335A #AF4A33
triadic
#AF335A #5AAF33 #335AAF
tetradic
#AF335A #98AF33 #33AF88 #4A33AF
square
#AF335A #98AF33 #33AF88 #4A33AF
split-complementary
#AF335A #33AF4A #3398AF
monochromatic
#501729 #802542 #AF335A #CD5279 #DB829E

Accessibility & contrast

On white

6.10
#AF335A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF335A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF335A
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF335A#FFFFFF#000000##FFFFFF
##AF335A1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F525B
Deuteranopia (green-blind)
#706B57
Tritanopia (blue-blind)
#BE1D43
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af335a;
/* rgb */ color: rgb(175, 51, 90);
/* oklch */ color: oklch(51.7% 0.162 5.9);
Tailwind
colors: {
  custom: {
    50: '#cc7488',
    500: '#af335a',
    950: '#000000',
  },
}
SCSS
$custom: #af335a;
$custom-light: #cc7488;
$custom-dark: #000000;
JSON
{
  "hex": "#af335a",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 90
  },
  "hsl": {
    "h": 341.129,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51718,
    "c": 0.1618,
    "h": 5.9
  },
  "luminance": 0.1222
}

Semantic roles & 50–950 ramp

primary
#AF335A
secondary
#7AC4AD
accent
#DEAF4A
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF335A

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

Preview Lab → · Contrast checker → · Palette generator →

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