#AF508D#AF508D

#AF508D is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.0% C 0.143 H 343.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF508D
RGBrgb(175, 80, 141)
HSLhsl(321, 37%, 50%)
HSVhsv(321, 54%, 69%)
CMYKcmyk(0%, 54.3%, 19.4%, 31.4%)
CIE-LABlab(47.98, 46.11, -15.50)
CIE-LCHlch(47.98, 48.64, 341.42°)
OKLaboklab(57.02% 0.1373 -0.0412)
OKLCHoklch(57.02% 0.143 343.3)
XYZxyz(25.3561, 16.7764, 27.0969)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF508D #50AF72
analogous
#A250AF #AF508D #AF505D
triadic
#AF508D #8DAF50 #508DAF
tetradic
#AF508D #AFA250 #50AF72 #505DAF
square
#AF508D #AFA250 #50AF72 #505DAF
split-complementary
#AF508D #5DAF50 #50AFA2
monochromatic
#5B2A49 #853D6B #AF508D #C27AA8 #D5A4C4

Accessibility & contrast

On white

4.82
#AF508D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF508D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF508D
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF508D#FFFFFF#000000##FFFFFF
##AF508D1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57688F
Deuteranopia (green-blind)
#71788B
Tritanopia (blue-blind)
#B95068
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af508d;
/* rgb */ color: rgb(175, 80, 141);
/* oklch */ color: oklch(57.0% 0.143 343.3);
Tailwind
colors: {
  custom: {
    50: '#c985ae',
    500: '#af508d',
    950: '#000000',
  },
}
SCSS
$custom: #af508d;
$custom-light: #c985ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af508d",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 321.474,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.5702,
    "c": 0.14338,
    "h": 343.3
  },
  "luminance": 0.16774
}

Semantic roles & 50–950 ramp

primary
#AF508D
secondary
#98C3A7
accent
#CD845B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF508D

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

Preview Lab → · Contrast checker → · Palette generator →

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