#AF509D#AF509D

#AF509D is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.7% C 0.155 H 335.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF509D
RGBrgb(175, 80, 157)
HSLhsl(311, 37%, 50%)
HSVhsv(311, 54%, 69%)
CMYKcmyk(0%, 54.3%, 10.3%, 31.4%)
CIE-LABlab(48.62, 48.66, -24.04)
CIE-LCHlch(48.62, 54.27, 333.71°)
OKLaboklab(57.71% 0.1411 -0.0652)
OKLCHoklch(57.71% 0.155 335.2)
XYZxyz(26.6338, 17.2875, 33.8258)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF509D #50AF62
analogous
#9150AF #AF509D #AF506E
triadic
#AF509D #9DAF50 #509DAF
tetradic
#AF509D #AF9150 #50AF62 #506EAF
square
#AF509D #AF9150 #50AF62 #506EAF
split-complementary
#AF509D #6EAF50 #50AF91
monochromatic
#5B2A52 #853D77 #AF509D #C27AB5 #D5A4CC

Accessibility & contrast

On white

4.71
#AF509D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF509D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF509D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF509D#FFFFFF#000000##FFFFFF
##AF509D1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506BA0
Deuteranopia (green-blind)
#6C799A
Tritanopia (blue-blind)
#B7556F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af509d;
/* rgb */ color: rgb(175, 80, 157);
/* oklch */ color: oklch(57.7% 0.155 335.2);
Tailwind
colors: {
  custom: {
    50: '#c985ba',
    500: '#af509d',
    950: '#000000',
  },
}
SCSS
$custom: #af509d;
$custom-light: #c985ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af509d",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 311.368,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.57708,
    "c": 0.15537,
    "h": 335.2
  },
  "luminance": 0.17286
}

Semantic roles & 50–950 ramp

primary
#AF509D
secondary
#98C3A0
accent
#CD705B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF509D

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

Preview Lab → · Contrast checker → · Palette generator →

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