#AF509A#AF509A

#AF509A is a mid, vivid pink. Relative luminance 0.172; OKLCH L 57.6% C 0.153 H 336.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF509A
RGBrgb(175, 80, 154)
HSLhsl(313, 37%, 50%)
HSVhsv(313, 54%, 69%)
CMYKcmyk(0%, 54.3%, 12%, 31.4%)
CIE-LABlab(48.49, 48.16, -22.46)
CIE-LCHlch(48.49, 53.14, 335.00°)
OKLaboklab(57.57% 0.1404 -0.0607)
OKLCHoklch(57.57% 0.153 336.6)
XYZxyz(26.3808, 17.1863, 32.4934)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF509A #50AF65
analogous
#9450AF #AF509A #AF506B
triadic
#AF509A #9AAF50 #509AAF
tetradic
#AF509A #AF9450 #50AF65 #506BAF
square
#AF509A #AF9450 #50AF65 #506BAF
split-complementary
#AF509A #6BAF50 #50AF94
monochromatic
#5B2A50 #853D75 #AF509A #C27AB2 #D5A4CA

Accessibility & contrast

On white

4.73
#AF509A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AF509A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF509A
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF509A#FFFFFF#000000##FFFFFF
##AF509A1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526A9C
Deuteranopia (green-blind)
#6D7897
Tritanopia (blue-blind)
#B7546E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af509a;
/* rgb */ color: rgb(175, 80, 154);
/* oklch */ color: oklch(57.6% 0.153 336.6);
Tailwind
colors: {
  custom: {
    50: '#c985b8',
    500: '#af509a',
    950: '#000000',
  },
}
SCSS
$custom: #af509a;
$custom-light: #c985b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af509a",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 154
  },
  "hsl": {
    "h": 313.263,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.57573,
    "c": 0.15298,
    "h": 336.6
  },
  "luminance": 0.17184
}

Semantic roles & 50–950 ramp

primary
#AF509A
secondary
#98C3A2
accent
#CD745B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF509A

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

Preview Lab → · Contrast checker → · Palette generator →

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