#AF4987#AF4987

#AF4987 is a mid, vivid pink. Relative luminance 0.156; OKLCH L 55.8% C 0.151 H 345.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF4987
RGBrgb(175, 73, 135)
HSLhsl(324, 41%, 49%)
HSVhsv(324, 58%, 69%)
CMYKcmyk(0%, 58.3%, 22.9%, 31.4%)
CIE-LABlab(46.49, 48.59, -14.15)
CIE-LCHlch(46.49, 50.61, 343.76°)
OKLaboklab(55.84% 0.1459 -0.0374)
OKLCHoklch(55.84% 0.151 345.6)
XYZxyz(24.4357, 15.6305, 24.6470)
Luminance0.1563 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4987 #49AF71
analogous
#A449AF #AF4987 #AF4954
triadic
#AF4987 #87AF49 #4987AF
tetradic
#AF4987 #AFA449 #49AF71 #4954AF
square
#AF4987 #AFA449 #49AF71 #4954AF
split-complementary
#AF4987 #54AF49 #49AFA4
monochromatic
#592544 #843766 #AF4987 #C471A4 #D69CBF

Accessibility & contrast

On white

5.09
#AF4987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AF4987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4987
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4987#FFFFFF#000000##FFFFFF
##AF49871.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536389
Deuteranopia (green-blind)
#6F7584
Tritanopia (blue-blind)
#BA4862
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af4987;
/* rgb */ color: rgb(175, 73, 135);
/* oklch */ color: oklch(55.8% 0.151 345.6);
Tailwind
colors: {
  custom: {
    50: '#ca81aa',
    500: '#af4987',
    950: '#000000',
  },
}
SCSS
$custom: #af4987;
$custom-light: #ca81aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4987",
  "rgb": {
    "r": 175,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 323.529,
    "s": 41.129,
    "l": 48.627
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.15065,
    "h": 345.6
  },
  "luminance": 0.15628
}

Semantic roles & 50–950 ramp

primary
#AF4987
secondary
#91C2A5
accent
#D18757
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4987

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

Preview Lab → · Contrast checker → · Palette generator →

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