#AB2C8E#AB2C8E

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

Color values

HEX#AB2C8E
RGBrgb(171, 44, 142)
HSLhsl(314, 59%, 42%)
HSVhsv(314, 74%, 67%)
CMYKcmyk(0%, 74.3%, 17%, 32.9%)
CIE-LABlab(41.87, 60.23, -25.56)
CIE-LCHlch(41.87, 65.43, 337.01°)
OKLaboklab(52.43% 0.1788 -0.0692)
OKLCHoklch(52.43% 0.192 338.8)
XYZxyz(22.5783, 12.4145, 26.7931)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C8E #2CAB49
analogous
#892CAB #AB2C8E #AB2C4E
triadic
#AB2C8E #8EAB2C #2C8EAB
tetradic
#AB2C8E #AB892C #2CAB49 #2C4EAB
square
#AB2C8E #AB892C #2CAB49 #2C4EAB
split-complementary
#AB2C8E #4EAB2C #2CAB89
monochromatic
#4A133D #7A1F66 #AB2C8E #CF45B0 #DC76C4

Accessibility & contrast

On white

6.03
#AB2C8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB2C8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C8E
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C8E#FFFFFF#000000##FFFFFF
##AB2C8E1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2c8e;
/* rgb */ color: rgb(171, 44, 142);
/* oklch */ color: oklch(52.4% 0.192 338.8);
Tailwind
colors: {
  custom: {
    50: '#c872af',
    500: '#ab2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c8e;
$custom-light: #c872af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c8e",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 313.701,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52425,
    "c": 0.19174,
    "h": 338.8
  },
  "luminance": 0.12412
}

Semantic roles & 50–950 ramp

primary
#AB2C8E
secondary
#6FC383
accent
#E26946
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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