#AF507F#AF507F

#AF507F is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.5% C 0.135 H 351.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AF507F
RGBrgb(175, 80, 127)
HSLhsl(330, 37%, 50%)
HSVhsv(330, 54%, 69%)
CMYKcmyk(0%, 54.3%, 27.4%, 31.4%)
CIE-LABlab(47.48, 44.08, -7.83)
CIE-LCHlch(47.48, 44.77, 349.92°)
OKLaboklab(56.48% 0.1333 -0.0202)
OKLCHoklch(56.48% 0.135 351.4)
XYZxyz(24.3795, 16.3858, 21.9534)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF507F #50AF80
analogous
#AF50AE #AF507F #AF5150
triadic
#AF507F #7FAF50 #507FAF
tetradic
#AF507F #AEAF50 #50AF80 #5150AF
square
#AF507F #AEAF50 #50AF80 #5150AF
split-complementary
#AF507F #50AF51 #50AEAF
monochromatic
#5B2A42 #853D61 #AF507F #C27A9E #D5A4BC

Accessibility & contrast

On white

4.91
#AF507F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF507F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF507F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF507F#FFFFFF#000000##FFFFFF
##AF507F1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6681
Deuteranopia (green-blind)
#75777D
Tritanopia (blue-blind)
#BB4C62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af507f;
/* rgb */ color: rgb(175, 80, 127);
/* oklch */ color: oklch(56.5% 0.135 351.4);
Tailwind
colors: {
  custom: {
    50: '#ca85a4',
    500: '#af507f',
    950: '#000000',
  },
}
SCSS
$custom: #af507f;
$custom-light: #ca85a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af507f",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 127
  },
  "hsl": {
    "h": 330.316,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56482,
    "c": 0.13481,
    "h": 351.4
  },
  "luminance": 0.16384
}

Semantic roles & 50–950 ramp

primary
#AF507F
secondary
#98C3AE
accent
#CD955B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF507F

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

Preview Lab → · Contrast checker → · Palette generator →

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