#AB297A#AB297A

#AB297A is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.3% C 0.183 H 347.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#AB297A
RGBrgb(171, 41, 122)
HSLhsl(323, 61%, 42%)
HSVhsv(323, 76%, 67%)
CMYKcmyk(0%, 76%, 28.7%, 32.9%)
CIE-LABlab(40.66, 58.55, -15.14)
CIE-LCHlch(40.66, 60.47, 345.50°)
OKLaboklab(51.26% 0.1783 -0.0399)
OKLCHoklch(51.26% 0.183 347.4)
XYZxyz(21.1014, 11.6513, 19.5463)
Luminance0.1165 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB297A #29AB5A
analogous
#9B29AB #AB297A #AB2939
triadic
#AB297A #7AAB29 #297AAB
tetradic
#AB297A #AB9B29 #29AB5A #2939AB
square
#AB297A #AB9B29 #29AB5A #2939AB
split-complementary
#AB297A #39AB29 #29AB9B
monochromatic
#481134 #7A1D57 #AB297A #D1409A #DD71B4

Accessibility & contrast

On white

6.31
#AB297A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AB297A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB297A
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB297A#FFFFFF#000000##FFFFFF
##AB297A1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527C
Deuteranopia (green-blind)
#636877
Tritanopia (blue-blind)
#B7244E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab297a;
/* rgb */ color: rgb(171, 41, 122);
/* oklch */ color: oklch(51.3% 0.183 347.4);
Tailwind
colors: {
  custom: {
    50: '#c870a0',
    500: '#ab297a',
    950: '#000000',
  },
}
SCSS
$custom: #ab297a;
$custom-light: #c870a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab297a",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 322.615,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51263,
    "c": 0.1827,
    "h": 347.4
  },
  "luminance": 0.11649
}

Semantic roles & 50–950 ramp

primary
#AB297A
secondary
#6CC48D
accent
#E48043
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB297A

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

Preview Lab → · Contrast checker → · Palette generator →

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