#AF508B#AF508B

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

Color values

HEX#AF508B
RGBrgb(175, 80, 139)
HSLhsl(323, 37%, 50%)
HSVhsv(323, 54%, 69%)
CMYKcmyk(0%, 54.3%, 20.6%, 31.4%)
CIE-LABlab(47.90, 45.81, -14.41)
CIE-LCHlch(47.90, 48.02, 342.54°)
OKLaboklab(56.94% 0.1368 -0.0382)
OKLCHoklch(56.94% 0.142 344.4)
XYZxyz(25.2087, 16.7175, 26.3202)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF508B #50AF74
analogous
#A450AF #AF508B #AF505B
triadic
#AF508B #8BAF50 #508BAF
tetradic
#AF508B #AFA450 #50AF74 #505BAF
square
#AF508B #AFA450 #50AF74 #505BAF
split-complementary
#AF508B #5BAF50 #50AFA4
monochromatic
#5B2A48 #853D6A #AF508B #C27AA7 #D5A4C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF508B#FFFFFF#000000##FFFFFF
##AF508B1.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)
#58688D
Deuteranopia (green-blind)
#727889
Tritanopia (blue-blind)
#B94F67
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af508b;
/* rgb */ color: rgb(175, 80, 139);
/* oklch */ color: oklch(56.9% 0.142 344.4);
Tailwind
colors: {
  custom: {
    50: '#c985ad',
    500: '#af508b',
    950: '#000000',
  },
}
SCSS
$custom: #af508b;
$custom-light: #c985ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af508b",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 322.737,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56939,
    "c": 0.14204,
    "h": 344.4
  },
  "luminance": 0.16715
}

Semantic roles & 50–950 ramp

primary
#AF508B
secondary
#98C3A8
accent
#CD865B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF508B

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

Preview Lab → · Contrast checker → · Palette generator →

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