#AB2C7E#AB2C7E

#AB2C7E is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.182 H 345.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AB2C7E
RGBrgb(171, 44, 126)
HSLhsl(321, 59%, 42%)
HSVhsv(321, 74%, 67%)
CMYKcmyk(0%, 74.3%, 26.3%, 32.9%)
CIE-LABlab(41.17, 58.07, -16.84)
CIE-LCHlch(41.17, 60.46, 343.83°)
OKLaboklab(51.69% 0.1761 -0.0447)
OKLCHoklch(51.69% 0.182 345.8)
XYZxyz(21.4621, 11.9680, 20.9144)
Luminance0.1197 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C7E #2CAB59
analogous
#992CAB #AB2C7E #AB2C3E
triadic
#AB2C7E #7EAB2C #2C7EAB
tetradic
#AB2C7E #AB992C #2CAB59 #2C3EAB
square
#AB2C7E #AB992C #2CAB59 #2C3EAB
split-complementary
#AB2C7E #3EAB2C #2CAB99
monochromatic
#4A1336 #7A1F5A #AB2C7E #CF459E #DC76B8

Accessibility & contrast

On white

6.19
#AB2C7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AB2C7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C7E
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C7E#FFFFFF#000000##FFFFFF
##AB2C7E1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#63697B
Tritanopia (blue-blind)
#B72951
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2c7e;
/* rgb */ color: rgb(171, 44, 126);
/* oklch */ color: oklch(51.7% 0.182 345.8);
Tailwind
colors: {
  custom: {
    50: '#c871a3',
    500: '#ab2c7e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c7e;
$custom-light: #c871a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c7e",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 321.26,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51686,
    "c": 0.18168,
    "h": 345.8
  },
  "luminance": 0.11966
}

Semantic roles & 50–950 ramp

primary
#AB2C7E
secondary
#6FC38D
accent
#E27D46
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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