#AB2997#AB2997

#AB2997 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.6% C 0.201 H 335.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AB2997
RGBrgb(171, 41, 151)
HSLhsl(309, 61%, 42%)
HSVhsv(309, 76%, 67%)
CMYKcmyk(0%, 76%, 11.7%, 32.9%)
CIE-LABlab(41.97, 62.49, -30.86)
CIE-LCHlch(41.97, 69.69, 333.72°)
OKLaboklab(52.64% 0.1826 -0.0843)
OKLCHoklch(52.64% 0.201 335.2)
XYZxyz(23.1737, 12.4803, 30.4606)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2997 #29AB3D
analogous
#7E29AB #AB2997 #AB2956
triadic
#AB2997 #97AB29 #2997AB
tetradic
#AB2997 #AB7E29 #29AB3D #2956AB
square
#AB2997 #AB7E29 #29AB3D #2956AB
split-complementary
#AB2997 #56AB29 #29AB7E
monochromatic
#481140 #7A1D6B #AB2997 #D140BB #DD71CC

Accessibility & contrast

On white

6.01
#AB2997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB2997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2997
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2997#FFFFFF#000000##FFFFFF
##AB29971.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#586A94
Tritanopia (blue-blind)
#B4345E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2997;
/* rgb */ color: rgb(171, 41, 151);
/* oklch */ color: oklch(52.6% 0.201 335.2);
Tailwind
colors: {
  custom: {
    50: '#c871b6',
    500: '#ab2997',
    950: '#000000',
  },
}
SCSS
$custom: #ab2997;
$custom-light: #c871b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2997",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 309.231,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52641,
    "c": 0.20112,
    "h": 335.2
  },
  "luminance": 0.12478
}

Semantic roles & 50–950 ramp

primary
#AB2997
secondary
#6CC479
accent
#E45C43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2997

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

Preview Lab → · Contrast checker → · Palette generator →

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