#AF288A#AF288A

#AF288A is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.196 H 341.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF288A
RGBrgb(175, 40, 138)
HSLhsl(316, 63%, 42%)
HSVhsv(316, 77%, 69%)
CMYKcmyk(0%, 77.1%, 21.1%, 31.4%)
CIE-LABlab(41.95, 61.90, -22.93)
CIE-LCHlch(41.95, 66.01, 339.67°)
OKLaboklab(52.56% 0.1859 -0.0617)
OKLCHoklch(52.56% 0.196 341.6)
XYZxyz(23.0262, 12.4689, 25.2339)
Luminance0.1247 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF288A #28AF4D
analogous
#9028AF #AF288A #AF2847
triadic
#AF288A #8AAF28 #288AAF
tetradic
#AF288A #AF9028 #28AF4D #2847AF
square
#AF288A #AF9028 #28AF4D #2847AF
split-complementary
#AF288A #47AF28 #28AF90
monochromatic
#4B113B #7D1D63 #AF288A #D441AB #DF73C1

Accessibility & contrast

On white

6.01
#AF288A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF288A
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF288A#FFFFFF#000000##FFFFFF
##AF288A1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#606B87
Tritanopia (blue-blind)
#BA2A56
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af288a;
/* rgb */ color: rgb(175, 40, 138);
/* oklch */ color: oklch(52.6% 0.196 341.6);
Tailwind
colors: {
  custom: {
    50: '#cb71ac',
    500: '#af288a',
    950: '#000000',
  },
}
SCSS
$custom: #af288a;
$custom-light: #cb71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af288a",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 316.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.19583,
    "h": 341.6
  },
  "luminance": 0.12467
}

Semantic roles & 50–950 ramp

primary
#AF288A
secondary
#6DC685
accent
#E66F42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF288A

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

Preview Lab → · Contrast checker → · Palette generator →

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