#AB2D94#AB2D94

#AB2D94 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.195 H 336.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AB2D94
RGBrgb(171, 45, 148)
HSLhsl(311, 58%, 42%)
HSVhsv(311, 74%, 67%)
CMYKcmyk(0%, 73.7%, 13.5%, 32.9%)
CIE-LABlab(42.27, 60.77, -28.57)
CIE-LCHlch(42.27, 67.15, 334.82°)
OKLaboklab(52.81% 0.1785 -0.0778)
OKLCHoklch(52.81% 0.195 336.4)
XYZxyz(23.0787, 12.6749, 29.2423)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D94 #2DAB44
analogous
#832DAB #AB2D94 #AB2D55
triadic
#AB2D94 #94AB2D #2D94AB
tetradic
#AB2D94 #AB832D #2DAB44 #2D55AB
square
#AB2D94 #AB832D #2DAB44 #2D55AB
split-complementary
#AB2D94 #55AB2D #2DAB83
monochromatic
#4A1440 #7B206A #AB2D94 #CE47B6 #DB77C9

Accessibility & contrast

On white

5.94
#AB2D94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB2D94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D94
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D94#FFFFFF#000000##FFFFFF
##AB2D941.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5897
Deuteranopia (green-blind)
#5B6B91
Tritanopia (blue-blind)
#B4355D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2d94;
/* rgb */ color: rgb(171, 45, 148);
/* oklch */ color: oklch(52.8% 0.195 336.4);
Tailwind
colors: {
  custom: {
    50: '#c873b3',
    500: '#ab2d94',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d94;
$custom-light: #c873b3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d94",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 310.952,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.19474,
    "h": 336.4
  },
  "luminance": 0.12673
}

Semantic roles & 50–950 ramp

primary
#AB2D94
secondary
#71C380
accent
#E26346
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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