#AB2896#AB2896

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

Color values

HEX#AB2896
RGBrgb(171, 40, 150)
HSLhsl(310, 62%, 41%)
HSVhsv(310, 77%, 67%)
CMYKcmyk(0%, 76.6%, 12.3%, 32.9%)
CIE-LABlab(41.81, 62.65, -30.50)
CIE-LCHlch(41.81, 69.68, 334.04°)
OKLaboklab(52.51% 0.1834 -0.0833)
OKLCHoklch(52.51% 0.201 335.6)
XYZxyz(23.0587, 12.3796, 30.0233)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2896 #28AB3D
analogous
#7F28AB #AB2896 #AB2855
triadic
#AB2896 #96AB28 #2896AB
tetradic
#AB2896 #AB7F28 #28AB3D #2855AB
square
#AB2896 #AB7F28 #28AB3D #2855AB
split-complementary
#AB2896 #55AB28 #28AB7F
monochromatic
#48113F #791C6A #AB2896 #D23EBA #DE70CC

Accessibility & contrast

On white

6.04
#AB2896 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB2896 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2896
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2896#FFFFFF#000000##FFFFFF
##AB28961.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295699
Deuteranopia (green-blind)
#586A93
Tritanopia (blue-blind)
#B4335D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2896;
/* rgb */ color: rgb(171, 40, 150);
/* oklch */ color: oklch(52.5% 0.201 335.6);
Tailwind
colors: {
  custom: {
    50: '#c871b5',
    500: '#ab2896',
    950: '#000000',
  },
}
SCSS
$custom: #ab2896;
$custom-light: #c871b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2896",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 309.618,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52512,
    "c": 0.20143,
    "h": 335.6
  },
  "luminance": 0.12378
}

Semantic roles & 50–950 ramp

primary
#AB2896
secondary
#6AC479
accent
#E55D43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2896

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

Preview Lab → · Contrast checker → · Palette generator →

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