#AF287A#AF287A

#AF287A is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.187 H 348.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF287A
RGBrgb(175, 40, 122)
HSLhsl(324, 63%, 42%)
HSVhsv(324, 77%, 69%)
CMYKcmyk(0%, 77.1%, 30.3%, 31.4%)
CIE-LABlab(41.28, 59.88, -14.13)
CIE-LCHlch(41.28, 61.53, 346.73°)
OKLaboklab(51.85% 0.1828 -0.0371)
OKLCHoklch(51.85% 0.187 348.5)
XYZxyz(21.9520, 12.0392, 19.5764)
Luminance0.1204 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF287A #28AF5D
analogous
#A128AF #AF287A #AF2836
triadic
#AF287A #7AAF28 #287AAF
tetradic
#AF287A #AFA128 #28AF5D #2836AF
square
#AF287A #AFA128 #28AF5D #2836AF
split-complementary
#AF287A #36AF28 #28AFA1
monochromatic
#4B1135 #7D1D57 #AF287A #D4419A #DF73B4

Accessibility & contrast

On white

6.16
#AF287A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF287A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF287A
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF287A#FFFFFF#000000##FFFFFF
##AF287A1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E527C
Deuteranopia (green-blind)
#656A77
Tritanopia (blue-blind)
#BC214E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af287a;
/* rgb */ color: rgb(175, 40, 122);
/* oklch */ color: oklch(51.9% 0.187 348.5);
Tailwind
colors: {
  custom: {
    50: '#cb70a0',
    500: '#af287a',
    950: '#000000',
  },
}
SCSS
$custom: #af287a;
$custom-light: #cb70a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af287a",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 323.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51851,
    "c": 0.18654,
    "h": 348.5
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#AF287A
secondary
#6DC690
accent
#E68242
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF287A

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

Preview Lab → · Contrast checker → · Palette generator →

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