#AB2C7F#AB2C7F

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

Color values

HEX#AB2C7F
RGBrgb(171, 44, 127)
HSLhsl(321, 59%, 42%)
HSVhsv(321, 74%, 67%)
CMYKcmyk(0%, 74.3%, 25.7%, 32.9%)
CIE-LABlab(41.21, 58.20, -17.39)
CIE-LCHlch(41.21, 60.74, 343.36°)
OKLaboklab(51.73% 0.1763 -0.0462)
OKLCHoklch(51.73% 0.182 345.3)
XYZxyz(21.5269, 11.9939, 21.2559)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C7F #2CAB58
analogous
#972CAB #AB2C7F #AB2C40
triadic
#AB2C7F #7FAB2C #2C7FAB
tetradic
#AB2C7F #AB972C #2CAB58 #2C40AB
square
#AB2C7F #AB972C #2CAB58 #2C40AB
split-complementary
#AB2C7F #40AB2C #2CAB97
monochromatic
#4A1337 #7A1F5B #AB2C7F #CF459F #DC76B8

Accessibility & contrast

On white

6.18
#AB2C7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AB2C7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C7F
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C7F#FFFFFF#000000##FFFFFF
##AB2C7F1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5381
Deuteranopia (green-blind)
#62697C
Tritanopia (blue-blind)
#B72A52
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2c7f;
/* rgb */ color: rgb(171, 44, 127);
/* oklch */ color: oklch(51.7% 0.182 345.3);
Tailwind
colors: {
  custom: {
    50: '#c871a4',
    500: '#ab2c7f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c7f;
$custom-light: #c871a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c7f",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 320.787,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5173,
    "c": 0.18226,
    "h": 345.3
  },
  "luminance": 0.11992
}

Semantic roles & 50–950 ramp

primary
#AB2C7F
secondary
#6FC38C
accent
#E27C46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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