#AF508A#AF508A

#AF508A is a mid, vivid pink. Relative luminance 0.167; OKLCH L 56.9% C 0.141 H 344.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF508A
RGBrgb(175, 80, 138)
HSLhsl(323, 37%, 50%)
HSVhsv(323, 54%, 69%)
CMYKcmyk(0%, 54.3%, 21.1%, 31.4%)
CIE-LABlab(47.87, 45.66, -13.87)
CIE-LCHlch(47.87, 47.72, 343.11°)
OKLaboklab(56.9% 0.1365 -0.0367)
OKLCHoklch(56.9% 0.141 344.9)
XYZxyz(25.1359, 16.6884, 25.9372)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF508A #50AF75
analogous
#A450AF #AF508A #AF505B
triadic
#AF508A #8AAF50 #508AAF
tetradic
#AF508A #AFA450 #50AF75 #505BAF
square
#AF508A #AFA450 #50AF75 #505BAF
split-complementary
#AF508A #5BAF50 #50AFA4
monochromatic
#5B2A48 #853D69 #AF508A #C27AA6 #D5A4C2

Accessibility & contrast

On white

4.84
#AF508A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF508A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF508A
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF508A#FFFFFF#000000##FFFFFF
##AF508A1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58688C
Deuteranopia (green-blind)
#727788
Tritanopia (blue-blind)
#B94F67
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af508a;
/* rgb */ color: rgb(175, 80, 138);
/* oklch */ color: oklch(56.9% 0.141 344.9);
Tailwind
colors: {
  custom: {
    50: '#c985ac',
    500: '#af508a',
    950: '#000000',
  },
}
SCSS
$custom: #af508a;
$custom-light: #c985ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af508a",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 138
  },
  "hsl": {
    "h": 323.368,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.569,
    "c": 0.14138,
    "h": 344.9
  },
  "luminance": 0.16686
}

Semantic roles & 50–950 ramp

primary
#AF508A
secondary
#98C3A9
accent
#CD875B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF508A

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

Preview Lab → · Contrast checker → · Palette generator →

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