#AF286A#AF286A

#AF286A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.2% C 0.179 H 356.0°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF286A
RGBrgb(175, 40, 106)
HSLhsl(331, 63%, 42%)
HSVhsv(331, 77%, 69%)
CMYKcmyk(0%, 77.1%, 39.4%, 31.4%)
CIE-LABlab(40.69, 58.09, -5.03)
CIE-LCHlch(40.69, 58.31, 355.05°)
OKLaboklab(51.23% 0.1785 -0.0125)
OKLCHoklch(51.23% 0.179 356)
XYZxyz(21.0410, 11.6748, 14.7783)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF286A #28AF6D
analogous
#AF28AE #AF286A #AF2A28
triadic
#AF286A #6AAF28 #286AAF
tetradic
#AF286A #AEAF28 #28AF6D #2A28AF
square
#AF286A #AEAF28 #28AF6D #2A28AF
split-complementary
#AF286A #28AF2A #28AEAF
monochromatic
#4B112E #7D1D4C #AF286A #D44188 #DF73A7

Accessibility & contrast

On white

6.30
#AF286A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AF286A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF286A
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF286A#FFFFFF#000000##FFFFFF
##AF286A1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44506C
Deuteranopia (green-blind)
#6A6967
Tritanopia (blue-blind)
#BD1546
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af286a;
/* rgb */ color: rgb(175, 40, 106);
/* oklch */ color: oklch(51.2% 0.179 356.0);
Tailwind
colors: {
  custom: {
    50: '#cc7094',
    500: '#af286a',
    950: '#000000',
  },
}
SCSS
$custom: #af286a;
$custom-light: #cc7094;
$custom-dark: #000000;
JSON
{
  "hex": "#af286a",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 330.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.17898,
    "h": 356
  },
  "luminance": 0.11672
}

Semantic roles & 50–950 ramp

primary
#AF286A
secondary
#6DC69A
accent
#E69642
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF286A

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

Preview Lab → · Contrast checker → · Palette generator →

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