#AF288D#AF288D

#AF288D is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.198 H 340.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF288D
RGBrgb(175, 40, 141)
HSLhsl(315, 63%, 42%)
HSVhsv(315, 77%, 69%)
CMYKcmyk(0%, 77.1%, 19.4%, 31.4%)
CIE-LABlab(42.09, 62.31, -24.55)
CIE-LCHlch(42.09, 66.97, 338.49°)
OKLaboklab(52.7% 0.1863 -0.0663)
OKLCHoklch(52.7% 0.198 340.4)
XYZxyz(23.2464, 12.5570, 26.3936)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF288D #28AF4A
analogous
#8E28AF #AF288D #AF284A
triadic
#AF288D #8DAF28 #288DAF
tetradic
#AF288D #AF8E28 #28AF4A #284AAF
square
#AF288D #AF8E28 #28AF4A #284AAF
split-complementary
#AF288D #4AAF28 #28AF8E
monochromatic
#4B113D #7D1D65 #AF288D #D441AF #DF73C4

Accessibility & contrast

On white

5.98
#AF288D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF288D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF288D
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF288D#FFFFFF#000000##FFFFFF
##AF288D1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#BA2C58
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af288d;
/* rgb */ color: rgb(175, 40, 141);
/* oklch */ color: oklch(52.7% 0.198 340.4);
Tailwind
colors: {
  custom: {
    50: '#cb71ae',
    500: '#af288d',
    950: '#000000',
  },
}
SCSS
$custom: #af288d;
$custom-light: #cb71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af288d",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 315.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52702,
    "c": 0.19772,
    "h": 340.4
  },
  "luminance": 0.12555
}

Semantic roles & 50–950 ramp

primary
#AF288D
secondary
#6DC683
accent
#E66B42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF288D

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

Preview Lab → · Contrast checker → · Palette generator →

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