#AF286F#AF286F

#AF286F is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.181 H 353.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AF286F
RGBrgb(175, 40, 111)
HSLhsl(328, 63%, 42%)
HSVhsv(328, 77%, 69%)
CMYKcmyk(0%, 77.1%, 36.6%, 31.4%)
CIE-LABlab(40.87, 58.63, -7.90)
CIE-LCHlch(40.87, 59.16, 352.32°)
OKLaboklab(51.42% 0.18 -0.0202)
OKLCHoklch(51.42% 0.181 353.6)
XYZxyz(21.3086, 11.7819, 16.1879)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF286F #28AF68
analogous
#AB28AF #AF286F #AF282C
triadic
#AF286F #6FAF28 #286FAF
tetradic
#AF286F #AFAB28 #28AF68 #282CAF
square
#AF286F #AFAB28 #28AF68 #282CAF
split-complementary
#AF286F #2CAF28 #28AFAB
monochromatic
#4B1130 #7D1D4F #AF286F #D4418E #DF73AC

Accessibility & contrast

On white

6.26
#AF286F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF286F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF286F
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF286F#FFFFFF#000000##FFFFFF
##AF286F1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425171
Deuteranopia (green-blind)
#68696C
Tritanopia (blue-blind)
#BD1948
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af286f;
/* rgb */ color: rgb(175, 40, 111);
/* oklch */ color: oklch(51.4% 0.181 353.6);
Tailwind
colors: {
  custom: {
    50: '#cc7098',
    500: '#af286f',
    950: '#000000',
  },
}
SCSS
$custom: #af286f;
$custom-light: #cc7098;
$custom-dark: #000000;
JSON
{
  "hex": "#af286f",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 328.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51416,
    "c": 0.18113,
    "h": 353.6
  },
  "luminance": 0.11779
}

Semantic roles & 50–950 ramp

primary
#AF286F
secondary
#6DC697
accent
#E69042
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF286F

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

Preview Lab → · Contrast checker → · Palette generator →

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