#AF288B#AF288B

#AF288B is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.196 H 341.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AF288B
RGBrgb(175, 40, 139)
HSLhsl(316, 63%, 42%)
HSVhsv(316, 77%, 69%)
CMYKcmyk(0%, 77.1%, 20.6%, 31.4%)
CIE-LABlab(42.00, 62.04, -23.47)
CIE-LCHlch(42.00, 66.33, 339.27°)
OKLaboklab(52.61% 0.186 -0.0632)
OKLCHoklch(52.61% 0.196 341.2)
XYZxyz(23.0989, 12.4980, 25.6170)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF288B #28AF4C
analogous
#9028AF #AF288B #AF2848
triadic
#AF288B #8BAF28 #288BAF
tetradic
#AF288B #AF9028 #28AF4C #2848AF
square
#AF288B #AF9028 #28AF4C #2848AF
split-complementary
#AF288B #48AF28 #28AF90
monochromatic
#4B113C #7D1D63 #AF288B #D441AC #DF73C2

Accessibility & contrast

On white

6.00
#AF288B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF288B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF288B
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF288B#FFFFFF#000000##FFFFFF
##AF288B1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#BA2B57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af288b;
/* rgb */ color: rgb(175, 40, 139);
/* oklch */ color: oklch(52.6% 0.196 341.2);
Tailwind
colors: {
  custom: {
    50: '#cb71ad',
    500: '#af288b',
    950: '#000000',
  },
}
SCSS
$custom: #af288b;
$custom-light: #cb71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af288b",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 316,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52606,
    "c": 0.19646,
    "h": 341.2
  },
  "luminance": 0.12496
}

Semantic roles & 50–950 ramp

primary
#AF288B
secondary
#6DC685
accent
#E66E42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF288B

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

Preview Lab → · Contrast checker → · Palette generator →

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