#AB298B#AB298B

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

Color values

HEX#AB298B
RGBrgb(171, 41, 139)
HSLhsl(315, 61%, 42%)
HSVhsv(315, 76%, 67%)
CMYKcmyk(0%, 76%, 18.7%, 32.9%)
CIE-LABlab(41.39, 60.77, -24.47)
CIE-LCHlch(41.39, 65.51, 338.07°)
OKLaboklab(52.04% 0.1813 -0.0661)
OKLCHoklch(52.04% 0.193 340)
XYZxyz(22.2484, 12.1101, 25.5869)
Luminance0.1211 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB298B #29AB49
analogous
#8A29AB #AB298B #AB294A
triadic
#AB298B #8BAB29 #298BAB
tetradic
#AB298B #AB8A29 #29AB49 #294AAB
square
#AB298B #AB8A29 #29AB49 #294AAB
split-complementary
#AB298B #4AAB29 #29AB8A
monochromatic
#48113B #7A1D63 #AB298B #D140AD #DD71C3

Accessibility & contrast

On white

6.14
#AB298B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB298B
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB298B#FFFFFF#000000##FFFFFF
##AB298B1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548E
Deuteranopia (green-blind)
#5D6988
Tritanopia (blue-blind)
#B52E57
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab298b;
/* rgb */ color: rgb(171, 41, 139);
/* oklch */ color: oklch(52.0% 0.193 340.0);
Tailwind
colors: {
  custom: {
    50: '#c871ad',
    500: '#ab298b',
    950: '#000000',
  },
}
SCSS
$custom: #ab298b;
$custom-light: #c871ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab298b",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 314.769,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52035,
    "c": 0.193,
    "h": 340
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#AB298B
secondary
#6CC481
accent
#E46B43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB298B

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

Preview Lab → · Contrast checker → · Palette generator →

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