#AB2A98#AB2A98

#AB2A98 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.201 H 334.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AB2A98
RGBrgb(171, 42, 152)
HSLhsl(309, 61%, 42%)
HSVhsv(309, 75%, 67%)
CMYKcmyk(0%, 75.4%, 11.1%, 32.9%)
CIE-LABlab(42.13, 62.33, -31.21)
CIE-LCHlch(42.13, 69.71, 333.40°)
OKLaboklab(52.77% 0.1817 -0.0854)
OKLCHoklch(52.77% 0.201 334.8)
XYZxyz(23.2903, 12.5829, 30.9018)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A98 #2AAB3D
analogous
#7E2AAB #AB2A98 #AB2A58
triadic
#AB2A98 #98AB2A #2A98AB
tetradic
#AB2A98 #AB7E2A #2AAB3D #2A58AB
square
#AB2A98 #AB7E2A #2AAB3D #2A58AB
split-complementary
#AB2A98 #58AB2A #2AAB7E
monochromatic
#491241 #7A1E6C #AB2A98 #D142BB #DD73CD

Accessibility & contrast

On white

5.97
#AB2A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB2A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A98
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A98#FFFFFF#000000##FFFFFF
##AB2A981.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#586A95
Tritanopia (blue-blind)
#B3355F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2a98;
/* rgb */ color: rgb(171, 42, 152);
/* oklch */ color: oklch(52.8% 0.201 334.8);
Tailwind
colors: {
  custom: {
    50: '#c871b6',
    500: '#ab2a98',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a98;
$custom-light: #c871b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a98",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 308.837,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52771,
    "c": 0.20079,
    "h": 334.8
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#AB2A98
secondary
#6DC47A
accent
#E45C44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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