#AB2A7D#AB2A7D

#AB2A7D is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.183 H 346.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AB2A7D
RGBrgb(171, 42, 125)
HSLhsl(321, 61%, 42%)
HSVhsv(321, 75%, 67%)
CMYKcmyk(0%, 75.4%, 26.9%, 32.9%)
CIE-LABlab(40.89, 58.60, -16.64)
CIE-LCHlch(40.89, 60.92, 344.15°)
OKLaboklab(51.47% 0.1779 -0.0441)
OKLCHoklch(51.47% 0.183 346.1)
XYZxyz(21.3252, 11.7969, 20.5520)
Luminance0.1179 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A7D #2AAB58
analogous
#992AAB #AB2A7D #AB2A3D
triadic
#AB2A7D #7DAB2A #2A7DAB
tetradic
#AB2A7D #AB992A #2AAB58 #2A3DAB
square
#AB2A7D #AB992A #2AAB58 #2A3DAB
split-complementary
#AB2A7D #3DAB2A #2AAB99
monochromatic
#491235 #7A1E59 #AB2A7D #D1429E #DD73B7

Accessibility & contrast

On white

6.25
#AB2A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AB2A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A7D
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A7D#FFFFFF#000000##FFFFFF
##AB2A7D1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B527F
Deuteranopia (green-blind)
#62687A
Tritanopia (blue-blind)
#B72750
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2a7d;
/* rgb */ color: rgb(171, 42, 125);
/* oklch */ color: oklch(51.5% 0.183 346.1);
Tailwind
colors: {
  custom: {
    50: '#c870a2',
    500: '#ab2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a7d;
$custom-light: #c870a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a7d",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 321.395,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51474,
    "c": 0.18332,
    "h": 346.1
  },
  "luminance": 0.11795
}

Semantic roles & 50–950 ramp

primary
#AB2A7D
secondary
#6DC48C
accent
#E47D44
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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