#AF286D#AF286D

#AF286D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.180 H 354.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF286D
RGBrgb(175, 40, 109)
HSLhsl(329, 63%, 42%)
HSVhsv(329, 77%, 69%)
CMYKcmyk(0%, 77.1%, 37.7%, 31.4%)
CIE-LABlab(40.80, 58.41, -6.76)
CIE-LCHlch(40.80, 58.80, 353.40°)
OKLaboklab(51.34% 0.1794 -0.0171)
OKLCHoklch(51.34% 0.18 354.6)
XYZxyz(21.1997, 11.7383, 15.6144)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF286D #28AF6A
analogous
#AE28AF #AF286D #AF282A
triadic
#AF286D #6DAF28 #286DAF
tetradic
#AF286D #AFAE28 #28AF6A #282AAF
square
#AF286D #AFAE28 #28AF6A #282AAF
split-complementary
#AF286D #2AAF28 #28AFAE
monochromatic
#4B112F #7D1D4E #AF286D #D4418C #DF73AA

Accessibility & contrast

On white

6.27
#AF286D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF286D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF286D
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF286D#FFFFFF#000000##FFFFFF
##AF286D1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43506F
Deuteranopia (green-blind)
#69696A
Tritanopia (blue-blind)
#BD1747
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af286d;
/* rgb */ color: rgb(175, 40, 109);
/* oklch */ color: oklch(51.3% 0.180 354.6);
Tailwind
colors: {
  custom: {
    50: '#cc7096',
    500: '#af286d',
    950: '#000000',
  },
}
SCSS
$custom: #af286d;
$custom-light: #cc7096;
$custom-dark: #000000;
JSON
{
  "hex": "#af286d",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 329.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51342,
    "c": 0.18024,
    "h": 354.6
  },
  "luminance": 0.11736
}

Semantic roles & 50–950 ramp

primary
#AF286D
secondary
#6DC698
accent
#E69242
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF286D

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

Preview Lab → · Contrast checker → · Palette generator →

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