#AB2996#AB2996

#AB2996 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.200 H 335.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AB2996
RGBrgb(171, 41, 150)
HSLhsl(310, 61%, 42%)
HSVhsv(310, 76%, 67%)
CMYKcmyk(0%, 76%, 12.3%, 32.9%)
CIE-LABlab(41.92, 62.34, -30.33)
CIE-LCHlch(41.92, 69.33, 334.06°)
OKLaboklab(52.59% 0.1825 -0.0828)
OKLCHoklch(52.59% 0.2 335.6)
XYZxyz(23.0929, 12.4479, 30.0347)
Luminance0.1245 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2996 #29AB3E
analogous
#7F29AB #AB2996 #AB2955
triadic
#AB2996 #96AB29 #2996AB
tetradic
#AB2996 #AB7F29 #29AB3E #2955AB
square
#AB2996 #AB7F29 #29AB3E #2955AB
split-complementary
#AB2996 #55AB29 #29AB7F
monochromatic
#48113F #7A1D6B #AB2996 #D140BA #DD71CC

Accessibility & contrast

On white

6.02
#AB2996 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB2996 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2996
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2996#FFFFFF#000000##FFFFFF
##AB29961.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5799
Deuteranopia (green-blind)
#596A93
Tritanopia (blue-blind)
#B4345D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2996;
/* rgb */ color: rgb(171, 41, 150);
/* oklch */ color: oklch(52.6% 0.200 335.6);
Tailwind
colors: {
  custom: {
    50: '#c871b5',
    500: '#ab2996',
    950: '#000000',
  },
}
SCSS
$custom: #ab2996;
$custom-light: #c871b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2996",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 309.692,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.20042,
    "h": 335.6
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#AB2996
secondary
#6CC47A
accent
#E45D43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2996

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

Preview Lab → · Contrast checker → · Palette generator →

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