#AB2899#AB2899

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

Color values

HEX#AB2899
RGBrgb(171, 40, 153)
HSLhsl(308, 62%, 41%)
HSVhsv(308, 77%, 67%)
CMYKcmyk(0%, 76.6%, 10.5%, 32.9%)
CIE-LABlab(41.97, 63.09, -32.07)
CIE-LCHlch(41.97, 70.78, 333.05°)
OKLaboklab(52.67% 0.1836 -0.0878)
OKLCHoklch(52.67% 0.204 334.4)
XYZxyz(23.3034, 12.4775, 31.3119)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2899 #28AB3A
analogous
#7C28AB #AB2899 #AB2858
triadic
#AB2899 #99AB28 #2899AB
tetradic
#AB2899 #AB7C28 #28AB3A #2858AB
square
#AB2899 #AB7C28 #28AB3A #2858AB
split-complementary
#AB2899 #58AB28 #28AB7C
monochromatic
#481140 #791C6D #AB2899 #D23EBE #DE70CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2899#FFFFFF#000000##FFFFFF
##AB28991.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)
#26579C
Deuteranopia (green-blind)
#576A96
Tritanopia (blue-blind)
#B3345F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2899;
/* rgb */ color: rgb(171, 40, 153);
/* oklch */ color: oklch(52.7% 0.204 334.4);
Tailwind
colors: {
  custom: {
    50: '#c871b7',
    500: '#ab2899',
    950: '#000000',
  },
}
SCSS
$custom: #ab2899;
$custom-light: #c871b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2899",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 308.244,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5267,
    "c": 0.20353,
    "h": 334.4
  },
  "luminance": 0.12475
}

Semantic roles & 50–950 ramp

primary
#AB2899
secondary
#6AC477
accent
#E55943
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2899

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

Preview Lab → · Contrast checker → · Palette generator →

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