#AB297E#AB297E

#AB297E is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.4% C 0.185 H 345.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AB297E
RGBrgb(171, 41, 126)
HSLhsl(321, 61%, 42%)
HSVhsv(321, 76%, 67%)
CMYKcmyk(0%, 76%, 26.3%, 32.9%)
CIE-LABlab(40.82, 59.05, -17.36)
CIE-LCHlch(40.82, 61.55, 343.61°)
OKLaboklab(51.43% 0.1791 -0.0461)
OKLCHoklch(51.43% 0.185 345.6)
XYZxyz(21.3544, 11.7525, 20.8785)
Luminance0.1175 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB297E #29AB56
analogous
#9729AB #AB297E #AB293D
triadic
#AB297E #7EAB29 #297EAB
tetradic
#AB297E #AB9729 #29AB56 #293DAB
square
#AB297E #AB9729 #29AB56 #293DAB
split-complementary
#AB297E #3DAB29 #29AB97
monochromatic
#481135 #7A1D5A #AB297E #D1409F #DD71B8

Accessibility & contrast

On white

6.27
#AB297E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AB297E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB297E
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB297E#FFFFFF#000000##FFFFFF
##AB297E1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5280
Deuteranopia (green-blind)
#62687B
Tritanopia (blue-blind)
#B72650
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab297e;
/* rgb */ color: rgb(171, 41, 126);
/* oklch */ color: oklch(51.4% 0.185 345.6);
Tailwind
colors: {
  custom: {
    50: '#c870a3',
    500: '#ab297e',
    950: '#000000',
  },
}
SCSS
$custom: #ab297e;
$custom-light: #c870a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab297e",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 320.769,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51435,
    "c": 0.18496,
    "h": 345.6
  },
  "luminance": 0.1175
}

Semantic roles & 50–950 ramp

primary
#AB297E
secondary
#6CC48A
accent
#E47B43
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB297E

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

Preview Lab → · Contrast checker → · Palette generator →

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