#AB297B#AB297B

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

Color values

HEX#AB297B
RGBrgb(171, 41, 123)
HSLhsl(322, 61%, 42%)
HSVhsv(322, 76%, 67%)
CMYKcmyk(0%, 76%, 28.1%, 32.9%)
CIE-LABlab(40.70, 58.67, -15.70)
CIE-LCHlch(40.70, 60.74, 345.02°)
OKLaboklab(51.31% 0.1785 -0.0415)
OKLCHoklch(51.31% 0.183 346.9)
XYZxyz(21.1637, 11.6762, 19.8743)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB297B #29AB59
analogous
#9A29AB #AB297B #AB293A
triadic
#AB297B #7BAB29 #297BAB
tetradic
#AB297B #AB9A29 #29AB59 #293AAB
square
#AB297B #AB9A29 #29AB59 #293AAB
split-complementary
#AB297B #3AAB29 #29AB9A
monochromatic
#481134 #7A1D57 #AB297B #D1409C #DD71B5

Accessibility & contrast

On white

6.30
#AB297B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB297B
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB297B#FFFFFF#000000##FFFFFF
##AB297B1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527D
Deuteranopia (green-blind)
#636878
Tritanopia (blue-blind)
#B7244F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab297b;
/* rgb */ color: rgb(171, 41, 123);
/* oklch */ color: oklch(51.3% 0.183 346.9);
Tailwind
colors: {
  custom: {
    50: '#c870a1',
    500: '#ab297b',
    950: '#000000',
  },
}
SCSS
$custom: #ab297b;
$custom-light: #c870a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab297b",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 123
  },
  "hsl": {
    "h": 322.154,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51305,
    "c": 0.18326,
    "h": 346.9
  },
  "luminance": 0.11674
}

Semantic roles & 50–950 ramp

primary
#AB297B
secondary
#6CC48C
accent
#E47F43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #AB297B

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

Preview Lab → · Contrast checker → · Palette generator →

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