#AF288F#AF288F

#AF288F is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.8% C 0.199 H 339.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF288F
RGBrgb(175, 40, 143)
HSLhsl(314, 63%, 42%)
HSVhsv(314, 77%, 69%)
CMYKcmyk(0%, 77.1%, 18.3%, 31.4%)
CIE-LABlab(42.18, 62.58, -25.62)
CIE-LCHlch(42.18, 67.62, 337.73°)
OKLaboklab(52.8% 0.1866 -0.0693)
OKLCHoklch(52.8% 0.199 339.6)
XYZxyz(23.3966, 12.6171, 27.1844)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF288F #28AF48
analogous
#8C28AF #AF288F #AF284C
triadic
#AF288F #8FAF28 #288FAF
tetradic
#AF288F #AF8C28 #28AF48 #284CAF
square
#AF288F #AF8C28 #28AF48 #284CAF
split-complementary
#AF288F #4CAF28 #28AF8C
monochromatic
#4B113E #7D1D66 #AF288F #D441B1 #DF73C5

Accessibility & contrast

On white

5.96
#AF288F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF288F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF288F
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF288F#FFFFFF#000000##FFFFFF
##AF288F1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325692
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#B92D59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af288f;
/* rgb */ color: rgb(175, 40, 143);
/* oklch */ color: oklch(52.8% 0.199 339.6);
Tailwind
colors: {
  custom: {
    50: '#cb71b0',
    500: '#af288f',
    950: '#000000',
  },
}
SCSS
$custom: #af288f;
$custom-light: #cb71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af288f",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 314.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52799,
    "c": 0.19901,
    "h": 339.6
  },
  "luminance": 0.12615
}

Semantic roles & 50–950 ramp

primary
#AF288F
secondary
#6DC682
accent
#E66942
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF288F

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

Preview Lab → · Contrast checker → · Palette generator →

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