#AF3987#AF3987

#AF3987 is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.0% C 0.174 H 343.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF3987
RGBrgb(175, 57, 135)
HSLhsl(320, 51%, 45%)
HSVhsv(320, 67%, 69%)
CMYKcmyk(0%, 67.4%, 22.9%, 31.4%)
CIE-LABlab(43.93, 55.56, -18.05)
CIE-LCHlch(43.93, 58.42, 342.00°)
OKLaboklab(53.96% 0.1672 -0.0481)
OKLCHoklch(53.96% 0.174 343.9)
XYZxyz(23.5163, 13.7918, 24.3406)
Luminance0.1379 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3987 #39AF61
analogous
#9C39AF #AF3987 #AF394C
triadic
#AF3987 #87AF39 #3987AF
tetradic
#AF3987 #AF9C39 #39AF61 #394CAF
square
#AF3987 #AF9C39 #39AF61 #394CAF
split-complementary
#AF3987 #4CAF39 #39AF9C
monochromatic
#531B40 #812A63 #AF3987 #CA5BA4 #D98ABE

Accessibility & contrast

On white

5.59
#AF3987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF3987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3987
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3987#FFFFFF#000000##FFFFFF
##AF39871.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455B89
Deuteranopia (green-blind)
#686F84
Tritanopia (blue-blind)
#BA395B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af3987;
/* rgb */ color: rgb(175, 57, 135);
/* oklch */ color: oklch(54.0% 0.174 343.9);
Tailwind
colors: {
  custom: {
    50: '#ca78aa',
    500: '#af3987',
    950: '#000000',
  },
}
SCSS
$custom: #af3987;
$custom-light: #ca78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af3987",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 320.339,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53958,
    "c": 0.17394,
    "h": 343.9
  },
  "luminance": 0.13789
}

Semantic roles & 50–950 ramp

primary
#AF3987
secondary
#81C397
accent
#DA7D4D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF3987

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

Preview Lab → · Contrast checker → · Palette generator →

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