#AB299A#AB299A

#AB299A is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.203 H 334.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AB299A
RGBrgb(171, 41, 154)
HSLhsl(308, 61%, 42%)
HSVhsv(308, 76%, 67%)
CMYKcmyk(0%, 76%, 9.9%, 32.9%)
CIE-LABlab(42.12, 62.94, -32.43)
CIE-LCHlch(42.12, 70.80, 332.74°)
OKLaboklab(52.8% 0.1828 -0.0889)
OKLCHoklch(52.8% 0.203 334.1)
XYZxyz(23.4205, 12.5790, 31.7601)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB299A #29AB3A
analogous
#7B29AB #AB299A #AB2959
triadic
#AB299A #9AAB29 #299AAB
tetradic
#AB299A #AB7B29 #29AB3A #2959AB
square
#AB299A #AB7B29 #29AB3A #2959AB
split-complementary
#AB299A #59AB29 #29AB7B
monochromatic
#481141 #7A1D6E #AB299A #D140BE #DD71CF

Accessibility & contrast

On white

5.97
#AB299A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB299A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB299A
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB299A#FFFFFF#000000##FFFFFF
##AB299A1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579D
Deuteranopia (green-blind)
#576A97
Tritanopia (blue-blind)
#B3365F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab299a;
/* rgb */ color: rgb(171, 41, 154);
/* oklch */ color: oklch(52.8% 0.203 334.1);
Tailwind
colors: {
  custom: {
    50: '#c871b8',
    500: '#ab299a',
    950: '#000000',
  },
}
SCSS
$custom: #ab299a;
$custom-light: #c871b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab299a",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 307.846,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.528,
    "c": 0.20324,
    "h": 334.1
  },
  "luminance": 0.12577
}

Semantic roles & 50–950 ramp

primary
#AB299A
secondary
#6CC477
accent
#E45843
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB299A

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

Preview Lab → · Contrast checker → · Palette generator →

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