#AB2C8B#AB2C8B

#AB2C8B is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.3% C 0.190 H 340.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AB2C8B
RGBrgb(171, 44, 139)
HSLhsl(315, 59%, 42%)
HSVhsv(315, 74%, 67%)
CMYKcmyk(0%, 74.3%, 18.7%, 32.9%)
CIE-LABlab(41.73, 59.81, -23.94)
CIE-LCHlch(41.73, 64.43, 338.18°)
OKLaboklab(52.28% 0.1784 -0.0646)
OKLCHoklch(52.28% 0.19 340.1)
XYZxyz(22.3561, 12.3256, 25.6228)
Luminance0.1232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C8B #2CAB4C
analogous
#8C2CAB #AB2C8B #AB2C4C
triadic
#AB2C8B #8BAB2C #2C8BAB
tetradic
#AB2C8B #AB8C2C #2CAB4C #2C4CAB
square
#AB2C8B #AB8C2C #2CAB4C #2C4CAB
split-complementary
#AB2C8B #4CAB2C #2CAB8C
monochromatic
#4A133C #7A1F63 #AB2C8B #CF45AC #DC76C2

Accessibility & contrast

On white

6.06
#AB2C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB2C8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C8B
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C8B#FFFFFF#000000##FFFFFF
##AB2C8B1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568E
Deuteranopia (green-blind)
#5E6A88
Tritanopia (blue-blind)
#B53058
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2c8b;
/* rgb */ color: rgb(171, 44, 139);
/* oklch */ color: oklch(52.3% 0.190 340.1);
Tailwind
colors: {
  custom: {
    50: '#c872ad',
    500: '#ab2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c8b;
$custom-light: #c872ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c8b",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 315.118,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5228,
    "c": 0.18975,
    "h": 340.1
  },
  "luminance": 0.12323
}

Semantic roles & 50–950 ramp

primary
#AB2C8B
secondary
#6FC385
accent
#E26D46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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