#AB2C8F#AB2C8F

#AB2C8F is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.5% C 0.192 H 338.4°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AB2C8F
RGBrgb(171, 44, 143)
HSLhsl(313, 59%, 42%)
HSVhsv(313, 74%, 67%)
CMYKcmyk(0%, 74.3%, 16.4%, 32.9%)
CIE-LABlab(41.91, 60.38, -26.09)
CIE-LCHlch(41.91, 65.77, 336.63°)
OKLaboklab(52.47% 0.1789 -0.0707)
OKLCHoklch(52.47% 0.192 338.4)
XYZxyz(22.6537, 12.4446, 27.1903)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C8F #2CAB48
analogous
#872CAB #AB2C8F #AB2C50
triadic
#AB2C8F #8FAB2C #2C8FAB
tetradic
#AB2C8F #AB872C #2CAB48 #2C50AB
square
#AB2C8F #AB872C #2CAB48 #2C50AB
split-complementary
#AB2C8F #50AB2C #2CAB87
monochromatic
#4A133E #7A1F66 #AB2C8F #CF45B1 #DC76C5

Accessibility & contrast

On white

6.02
#AB2C8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB2C8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C8F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C8F#FFFFFF#000000##FFFFFF
##AB2C8F1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325692
Deuteranopia (green-blind)
#5D6A8C
Tritanopia (blue-blind)
#B5325A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2c8f;
/* rgb */ color: rgb(171, 44, 143);
/* oklch */ color: oklch(52.5% 0.192 338.4);
Tailwind
colors: {
  custom: {
    50: '#c872b0',
    500: '#ab2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c8f;
$custom-light: #c872b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c8f",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 313.228,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52474,
    "c": 0.19242,
    "h": 338.4
  },
  "luminance": 0.12442
}

Semantic roles & 50–950 ramp

primary
#AB2C8F
secondary
#6FC382
accent
#E26846
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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