#AF508F#AF508F

#AF508F is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.1% C 0.145 H 342.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF508F
RGBrgb(175, 80, 143)
HSLhsl(320, 37%, 50%)
HSVhsv(320, 54%, 69%)
CMYKcmyk(0%, 54.3%, 18.3%, 31.4%)
CIE-LABlab(48.05, 46.42, -16.58)
CIE-LCHlch(48.05, 49.29, 340.35°)
OKLaboklab(57.1% 0.1379 -0.0442)
OKLCHoklch(57.1% 0.145 342.2)
XYZxyz(25.5063, 16.8365, 27.8877)
Luminance0.1683 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF508F #50AF70
analogous
#A050AF #AF508F #AF505F
triadic
#AF508F #8FAF50 #508FAF
tetradic
#AF508F #AFA050 #50AF70 #505FAF
square
#AF508F #AFA050 #50AF70 #505FAF
split-complementary
#AF508F #5FAF50 #50AFA0
monochromatic
#5B2A4A #853D6D #AF508F #C27AAA #D5A4C5

Accessibility & contrast

On white

4.81
#AF508F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF508F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF508F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF508F#FFFFFF#000000##FFFFFF
##AF508F1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566891
Deuteranopia (green-blind)
#71788D
Tritanopia (blue-blind)
#B95169
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af508f;
/* rgb */ color: rgb(175, 80, 143);
/* oklch */ color: oklch(57.1% 0.145 342.2);
Tailwind
colors: {
  custom: {
    50: '#c985b0',
    500: '#af508f',
    950: '#000000',
  },
}
SCSS
$custom: #af508f;
$custom-light: #c985b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af508f",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 320.211,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.57102,
    "c": 0.14477,
    "h": 342.2
  },
  "luminance": 0.16834
}

Semantic roles & 50–950 ramp

primary
#AF508F
secondary
#98C3A6
accent
#CD815B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF508F

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

Preview Lab → · Contrast checker → · Palette generator →

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