#AF287F#AF287F

#AF287F is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.189 H 346.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF287F
RGBrgb(175, 40, 127)
HSLhsl(321, 63%, 42%)
HSVhsv(321, 77%, 69%)
CMYKcmyk(0%, 77.1%, 27.4%, 31.4%)
CIE-LABlab(41.48, 60.49, -16.91)
CIE-LCHlch(41.48, 62.81, 344.38°)
OKLaboklab(52.06% 0.1839 -0.0448)
OKLCHoklch(52.06% 0.189 346.3)
XYZxyz(22.2698, 12.1663, 21.2501)
Luminance0.1216 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF287F #28AF58
analogous
#9B28AF #AF287F #AF283C
triadic
#AF287F #7FAF28 #287FAF
tetradic
#AF287F #AF9B28 #28AF58 #283CAF
square
#AF287F #AF9B28 #28AF58 #283CAF
split-complementary
#AF287F #3CAF28 #28AF9B
monochromatic
#4B1137 #7D1D5B #AF287F #D4419F #DF73B8

Accessibility & contrast

On white

6.12
#AF287F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF287F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF287F
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF287F#FFFFFF#000000##FFFFFF
##AF287F1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5381
Deuteranopia (green-blind)
#646A7C
Tritanopia (blue-blind)
#BB2450
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af287f;
/* rgb */ color: rgb(175, 40, 127);
/* oklch */ color: oklch(52.1% 0.189 346.3);
Tailwind
colors: {
  custom: {
    50: '#cb70a4',
    500: '#af287f',
    950: '#000000',
  },
}
SCSS
$custom: #af287f;
$custom-light: #cb70a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af287f",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 321.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52062,
    "c": 0.18928,
    "h": 346.3
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#AF287F
secondary
#6DC68C
accent
#E67C42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF287F

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

Preview Lab → · Contrast checker → · Palette generator →

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