#AB298A#AB298A

#AB298A is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.0% C 0.192 H 340.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AB298A
RGBrgb(171, 41, 138)
HSLhsl(315, 61%, 42%)
HSVhsv(315, 76%, 67%)
CMYKcmyk(0%, 76%, 19.3%, 32.9%)
CIE-LABlab(41.34, 60.63, -23.93)
CIE-LCHlch(41.34, 65.19, 338.46°)
OKLaboklab(51.99% 0.1812 -0.0646)
OKLCHoklch(51.99% 0.192 340.4)
XYZxyz(22.1756, 12.0810, 25.2038)
Luminance0.1208 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB298A #29AB4A
analogous
#8B29AB #AB298A #AB2949
triadic
#AB298A #8AAB29 #298AAB
tetradic
#AB298A #AB8B29 #29AB4A #2949AB
square
#AB298A #AB8B29 #29AB4A #2949AB
split-complementary
#AB298A #49AB29 #29AB8B
monochromatic
#48113A #7A1D62 #AB298A #D140AC #DD71C2

Accessibility & contrast

On white

6.15
#AB298A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AB298A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB298A
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB298A#FFFFFF#000000##FFFFFF
##AB298A1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#5E6987
Tritanopia (blue-blind)
#B52D57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab298a;
/* rgb */ color: rgb(171, 41, 138);
/* oklch */ color: oklch(52.0% 0.192 340.4);
Tailwind
colors: {
  custom: {
    50: '#c871ac',
    500: '#ab298a',
    950: '#000000',
  },
}
SCSS
$custom: #ab298a;
$custom-light: #c871ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab298a",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 315.231,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51987,
    "c": 0.19235,
    "h": 340.4
  },
  "luminance": 0.12079
}

Semantic roles & 50–950 ramp

primary
#AB298A
secondary
#6CC482
accent
#E46C43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB298A

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

Preview Lab → · Contrast checker → · Palette generator →

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