#AB299D#AB299D

#AB299D is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.205 H 333.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AB299D
RGBrgb(171, 41, 157)
HSLhsl(306, 61%, 42%)
HSVhsv(306, 76%, 67%)
CMYKcmyk(0%, 76%, 8.2%, 32.9%)
CIE-LABlab(42.28, 63.39, -33.99)
CIE-LCHlch(42.28, 71.93, 331.80°)
OKLaboklab(52.96% 0.1829 -0.0934)
OKLCHoklch(52.96% 0.205 333)
XYZxyz(23.6735, 12.6801, 33.0924)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB299D #29AB37
analogous
#7829AB #AB299D #AB295C
triadic
#AB299D #9DAB29 #299DAB
tetradic
#AB299D #AB7829 #29AB37 #295CAB
square
#AB299D #AB7829 #29AB37 #295CAB
split-complementary
#AB299D #5CAB29 #29AB78
monochromatic
#481142 #7A1D70 #AB299D #D140C2 #DD71D1

Accessibility & contrast

On white

5.94
#AB299D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB299D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB299D
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB299D#FFFFFF#000000##FFFFFF
##AB299D1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#556A9A
Tritanopia (blue-blind)
#B33761
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab299d;
/* rgb */ color: rgb(171, 41, 157);
/* oklch */ color: oklch(53.0% 0.205 333.0);
Tailwind
colors: {
  custom: {
    50: '#c871ba',
    500: '#ab299d',
    950: '#000000',
  },
}
SCSS
$custom: #ab299d;
$custom-light: #c871ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab299d",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 306.462,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52962,
    "c": 0.20539,
    "h": 333
  },
  "luminance": 0.12678
}

Semantic roles & 50–950 ramp

primary
#AB299D
secondary
#6CC475
accent
#E45543
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB299D

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

Preview Lab → · Contrast checker → · Palette generator →

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