#AB299B#AB299B

#AB299B is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.204 H 333.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB299B
RGBrgb(171, 41, 155)
HSLhsl(307, 61%, 42%)
HSVhsv(307, 76%, 67%)
CMYKcmyk(0%, 76%, 9.4%, 32.9%)
CIE-LABlab(42.17, 63.09, -32.95)
CIE-LCHlch(42.17, 71.18, 332.42°)
OKLaboklab(52.85% 0.1828 -0.0904)
OKLCHoklch(52.85% 0.204 333.7)
XYZxyz(23.5041, 12.6124, 32.2005)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB299B #29AB39
analogous
#7A29AB #AB299B #AB295A
triadic
#AB299B #9BAB29 #299BAB
tetradic
#AB299B #AB7A29 #29AB39 #295AAB
square
#AB299B #AB7A29 #29AB39 #295AAB
split-complementary
#AB299B #5AAB29 #29AB7A
monochromatic
#481142 #7A1D6E #AB299B #D140BF #DD71D0

Accessibility & contrast

On white

5.96
#AB299B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB299B
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB299B#FFFFFF#000000##FFFFFF
##AB299B1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589E
Deuteranopia (green-blind)
#566A98
Tritanopia (blue-blind)
#B33660
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab299b;
/* rgb */ color: rgb(171, 41, 155);
/* oklch */ color: oklch(52.9% 0.204 333.7);
Tailwind
colors: {
  custom: {
    50: '#c871b9',
    500: '#ab299b',
    950: '#000000',
  },
}
SCSS
$custom: #ab299b;
$custom-light: #c871b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab299b",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 307.385,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52853,
    "c": 0.20395,
    "h": 333.7
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB299B

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

Preview Lab → · Contrast checker → · Palette generator →

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