#AF286B#AF286B

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

Color values

HEX#AF286B
RGBrgb(175, 40, 107)
HSLhsl(330, 63%, 42%)
HSVhsv(330, 77%, 69%)
CMYKcmyk(0%, 77.1%, 38.9%, 31.4%)
CIE-LABlab(40.73, 58.20, -5.61)
CIE-LCHlch(40.73, 58.47, 354.49°)
OKLaboklab(51.27% 0.1788 -0.014)
OKLCHoklch(51.27% 0.179 355.5)
XYZxyz(21.0933, 11.6957, 15.0538)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF286B #28AF6C
analogous
#AF28AF #AF286B #AF2828
triadic
#AF286B #6BAF28 #286BAF
tetradic
#AF286B #AFAF28 #28AF6C #2828AF
square
#AF286B #AFAF28 #28AF6C #2828AF
split-complementary
#AF286B #28AF28 #28AFAF
monochromatic
#4B112E #7D1D4D #AF286B #D4418A #DF73A8

Accessibility & contrast

On white

6.29
#AF286B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF286B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF286B
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF286B#FFFFFF#000000##FFFFFF
##AF286B1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44506D
Deuteranopia (green-blind)
#696968
Tritanopia (blue-blind)
#BD1646
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af286b;
/* rgb */ color: rgb(175, 40, 107);
/* oklch */ color: oklch(51.3% 0.179 355.5);
Tailwind
colors: {
  custom: {
    50: '#cc7095',
    500: '#af286b',
    950: '#000000',
  },
}
SCSS
$custom: #af286b;
$custom-light: #cc7095;
$custom-dark: #000000;
JSON
{
  "hex": "#af286b",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 330.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51269,
    "c": 0.17939,
    "h": 355.5
  },
  "luminance": 0.11693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF286B

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

Preview Lab → · Contrast checker → · Palette generator →

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