#AB2A94#AB2A94

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

Color values

HEX#AB2A94
RGBrgb(171, 42, 148)
HSLhsl(311, 61%, 42%)
HSVhsv(311, 75%, 67%)
CMYKcmyk(0%, 75.4%, 13.5%, 32.9%)
CIE-LABlab(41.93, 61.74, -29.11)
CIE-LCHlch(41.93, 68.26, 334.76°)
OKLaboklab(52.56% 0.1814 -0.0793)
OKLCHoklch(52.56% 0.198 336.4)
XYZxyz(22.9682, 12.4541, 29.2055)
Luminance0.1245 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A94 #2AAB41
analogous
#822AAB #AB2A94 #AB2A54
triadic
#AB2A94 #94AB2A #2A94AB
tetradic
#AB2A94 #AB822A #2AAB41 #2A54AB
square
#AB2A94 #AB822A #2AAB41 #2A54AB
split-complementary
#AB2A94 #54AB2A #2AAB82
monochromatic
#49123F #7A1E69 #AB2A94 #D142B7 #DD73CA

Accessibility & contrast

On white

6.02
#AB2A94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB2A94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A94
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A94#FFFFFF#000000##FFFFFF
##AB2A941.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5797
Deuteranopia (green-blind)
#5A6A91
Tritanopia (blue-blind)
#B4335C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2a94;
/* rgb */ color: rgb(171, 42, 148);
/* oklch */ color: oklch(52.6% 0.198 336.4);
Tailwind
colors: {
  custom: {
    50: '#c871b4',
    500: '#ab2a94',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a94;
$custom-light: #c871b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a94",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 310.698,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52563,
    "c": 0.19799,
    "h": 336.4
  },
  "luminance": 0.12452
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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