#AB2A95#AB2A95

#AB2A95 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.199 H 336.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AB2A95
RGBrgb(171, 42, 149)
HSLhsl(310, 61%, 42%)
HSVhsv(310, 75%, 67%)
CMYKcmyk(0%, 75.4%, 12.9%, 32.9%)
CIE-LABlab(41.98, 61.89, -29.63)
CIE-LCHlch(41.98, 68.62, 334.41°)
OKLaboklab(52.61% 0.1815 -0.0808)
OKLCHoklch(52.61% 0.199 336)
XYZxyz(23.0477, 12.4859, 29.6241)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A95 #2AAB40
analogous
#812AAB #AB2A95 #AB2A54
triadic
#AB2A95 #95AB2A #2A95AB
tetradic
#AB2A95 #AB812A #2AAB40 #2A54AB
square
#AB2A95 #AB812A #2AAB40 #2A54AB
split-complementary
#AB2A95 #54AB2A #2AAB81
monochromatic
#49123F #7A1E6A #AB2A95 #D142B8 #DD73CB

Accessibility & contrast

On white

6.01
#AB2A95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB2A95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A95
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A95#FFFFFF#000000##FFFFFF
##AB2A951.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5798
Deuteranopia (green-blind)
#596A92
Tritanopia (blue-blind)
#B4345D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2a95;
/* rgb */ color: rgb(171, 42, 149);
/* oklch */ color: oklch(52.6% 0.199 336.0);
Tailwind
colors: {
  custom: {
    50: '#c871b4',
    500: '#ab2a95',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a95;
$custom-light: #c871b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a95",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 310.233,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52614,
    "c": 0.19869,
    "h": 336
  },
  "luminance": 0.12484
}

Semantic roles & 50–950 ramp

primary
#AB2A95
secondary
#6DC47C
accent
#E45F44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A95

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

Preview Lab → · Contrast checker → · Palette generator →

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