#AF287B#AF287B

#AF287B is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.187 H 348.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AF287B
RGBrgb(175, 40, 123)
HSLhsl(323, 63%, 42%)
HSVhsv(323, 77%, 69%)
CMYKcmyk(0%, 77.1%, 29.7%, 31.4%)
CIE-LABlab(41.32, 60.00, -14.68)
CIE-LCHlch(41.32, 61.77, 346.25°)
OKLaboklab(51.89% 0.183 -0.0386)
OKLCHoklch(51.89% 0.187 348.1)
XYZxyz(22.0143, 12.0641, 19.9043)
Luminance0.1206 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF287B #28AF5C
analogous
#A028AF #AF287B #AF2838
triadic
#AF287B #7BAF28 #287BAF
tetradic
#AF287B #AFA028 #28AF5C #2838AF
square
#AF287B #AFA028 #28AF5C #2838AF
split-complementary
#AF287B #38AF28 #28AFA0
monochromatic
#4B1135 #7D1D58 #AF287B #D4419B #DF73B5

Accessibility & contrast

On white

6.15
#AF287B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF287B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF287B
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF287B#FFFFFF#000000##FFFFFF
##AF287B1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527D
Deuteranopia (green-blind)
#656A78
Tritanopia (blue-blind)
#BC214E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af287b;
/* rgb */ color: rgb(175, 40, 123);
/* oklch */ color: oklch(51.9% 0.187 348.1);
Tailwind
colors: {
  custom: {
    50: '#cb70a1',
    500: '#af287b',
    950: '#000000',
  },
}
SCSS
$custom: #af287b;
$custom-light: #cb70a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af287b",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 323.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.18708,
    "h": 348.1
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#AF287B
secondary
#6DC68F
accent
#E68142
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF287B

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

Preview Lab → · Contrast checker → · Palette generator →

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