#AF287E#AF287E

#AF287E is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.0% C 0.189 H 346.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AF287E
RGBrgb(175, 40, 126)
HSLhsl(322, 63%, 42%)
HSVhsv(322, 77%, 69%)
CMYKcmyk(0%, 77.1%, 28%, 31.4%)
CIE-LABlab(41.44, 60.37, -16.35)
CIE-LCHlch(41.44, 62.54, 344.84°)
OKLaboklab(52.02% 0.1837 -0.0433)
OKLCHoklch(52.02% 0.189 346.7)
XYZxyz(22.2049, 12.1404, 20.9086)
Luminance0.1214 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF287E #28AF59
analogous
#9D28AF #AF287E #AF283A
triadic
#AF287E #7EAF28 #287EAF
tetradic
#AF287E #AF9D28 #28AF59 #283AAF
square
#AF287E #AF9D28 #28AF59 #283AAF
split-complementary
#AF287E #3AAF28 #28AF9D
monochromatic
#4B1136 #7D1D5A #AF287E #D4419E #DF73B8

Accessibility & contrast

On white

6.13
#AF287E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF287E
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF287E#FFFFFF#000000##FFFFFF
##AF287E1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#BB2350
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af287e;
/* rgb */ color: rgb(175, 40, 126);
/* oklch */ color: oklch(52.0% 0.189 346.7);
Tailwind
colors: {
  custom: {
    50: '#cb70a3',
    500: '#af287e',
    950: '#000000',
  },
}
SCSS
$custom: #af287e;
$custom-light: #cb70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af287e",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 321.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52019,
    "c": 0.18873,
    "h": 346.7
  },
  "luminance": 0.12138
}

Semantic roles & 50–950 ramp

primary
#AF287E
secondary
#6DC68D
accent
#E67D42
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF287E

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

Preview Lab → · Contrast checker → · Palette generator →

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