#AB218D#AB218D

#AB218D is a mid, highly saturated pink. Relative luminance 0.117; OKLCH L 51.6% C 0.202 H 338.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AB218D
RGBrgb(171, 33, 141)
HSLhsl(313, 68%, 40%)
HSVhsv(313, 81%, 67%)
CMYKcmyk(0%, 80.7%, 17.5%, 32.9%)
CIE-LABlab(40.69, 63.33, -26.79)
CIE-LCHlch(40.69, 68.76, 337.07°)
OKLaboklab(51.56% 0.1885 -0.0726)
OKLCHoklch(51.56% 0.202 338.9)
XYZxyz(22.1468, 11.6710, 26.2805)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB218D #21AB3F
analogous
#8421AB #AB218D #AB2148
triadic
#AB218D #8DAB21 #218DAB
tetradic
#AB218D #AB8421 #21AB3F #2148AB
square
#AB218D #AB8421 #21AB3F #2148AB
split-complementary
#AB218D #48AB21 #21AB84
monochromatic
#440D38 #781763 #AB218D #D732B3 #E165C6

Accessibility & contrast

On white

6.30
#AB218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AB218D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB218D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB218D#FFFFFF#000000##FFFFFF
##AB218D1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5290
Deuteranopia (green-blind)
#5A678A
Tritanopia (blue-blind)
#B52856
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab218d;
/* rgb */ color: rgb(171, 33, 141);
/* oklch */ color: oklch(51.6% 0.202 338.9);
Tailwind
colors: {
  custom: {
    50: '#c86eae',
    500: '#ab218d',
    950: '#000000',
  },
}
SCSS
$custom: #ab218d;
$custom-light: #c86eae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab218d",
  "rgb": {
    "r": 171,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 313.043,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.5156,
    "c": 0.20199,
    "h": 338.9
  },
  "luminance": 0.11669
}

Semantic roles & 50–950 ramp

primary
#AB218D
secondary
#61C777
accent
#EB633D
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB218D

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

Preview Lab → · Contrast checker → · Palette generator →

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