#AF218B#AF218B

#AF218B is a mid, highly saturated pink. Relative luminance 0.121; OKLCH L 52.1% C 0.203 H 341.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AF218B
RGBrgb(175, 33, 139)
HSLhsl(315, 68%, 41%)
HSVhsv(315, 81%, 69%)
CMYKcmyk(0%, 81.1%, 20.6%, 31.4%)
CIE-LABlab(41.32, 63.97, -24.52)
CIE-LCHlch(41.32, 68.50, 339.03°)
OKLaboklab(52.12% 0.1919 -0.0661)
OKLCHoklch(52.12% 0.203 341)
XYZxyz(22.8840, 12.0682, 25.5453)
Luminance0.1207 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF218B #21AF45
analogous
#8C21AF #AF218B #AF2144
triadic
#AF218B #8BAF21 #218BAF
tetradic
#AF218B #AF8C21 #21AF45 #2144AF
square
#AF218B #AF8C21 #21AF45 #2144AF
split-complementary
#AF218B #44AF21 #21AF8C
monochromatic
#480E39 #7C1762 #AF218B #D934AF #E368C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF218B#FFFFFF#000000##FFFFFF
##AF218B1.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)
#2F538E
Deuteranopia (green-blind)
#5E6988
Tritanopia (blue-blind)
#BA2555
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af218b;
/* rgb */ color: rgb(175, 33, 139);
/* oklch */ color: oklch(52.1% 0.203 341.0);
Tailwind
colors: {
  custom: {
    50: '#cb6ead',
    500: '#af218b',
    950: '#000000',
  },
}
SCSS
$custom: #af218b;
$custom-light: #cb6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#af218b",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 315.211,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52121,
    "c": 0.20297,
    "h": 341
  },
  "luminance": 0.12066
}

Semantic roles & 50–950 ramp

primary
#AF218B
secondary
#64C87D
accent
#EB693D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF218B

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

Preview Lab → · Contrast checker → · Palette generator →

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