#AF2987#AF2987

#AF2987 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.5% C 0.193 H 342.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AF2987
RGBrgb(175, 41, 135)
HSLhsl(318, 62%, 42%)
HSVhsv(318, 77%, 69%)
CMYKcmyk(0%, 76.6%, 22.9%, 31.4%)
CIE-LABlab(41.92, 61.21, -21.14)
CIE-LCHlch(41.92, 64.75, 340.95°)
OKLaboklab(52.5% 0.1845 -0.0566)
OKLCHoklch(52.5% 0.193 342.9)
XYZxyz(22.8462, 12.4515, 24.1172)
Luminance0.1245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2987 #29AF51
analogous
#9429AF #AF2987 #AF2944
triadic
#AF2987 #87AF29 #2987AF
tetradic
#AF2987 #AF9429 #29AF51 #2944AF
square
#AF2987 #AF9429 #29AF51 #2944AF
split-complementary
#AF2987 #44AF29 #29AF94
monochromatic
#4C123B #7D1D61 #AF2987 #D342A8 #DE74BF

Accessibility & contrast

On white

6.02
#AF2987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AF2987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2987
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2987#FFFFFF#000000##FFFFFF
##AF29871.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385589
Deuteranopia (green-blind)
#626B84
Tritanopia (blue-blind)
#BA2A55
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2987;
/* rgb */ color: rgb(175, 41, 135);
/* oklch */ color: oklch(52.5% 0.193 342.9);
Tailwind
colors: {
  custom: {
    50: '#cb71aa',
    500: '#af2987',
    950: '#000000',
  },
}
SCSS
$custom: #af2987;
$custom-light: #cb71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2987",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 317.91,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.19296,
    "h": 342.9
  },
  "luminance": 0.12449
}

Semantic roles & 50–950 ramp

primary
#AF2987
secondary
#6EC688
accent
#E57343
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2987

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

Preview Lab → · Contrast checker → · Palette generator →

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