#AB299F#AB299F

#AB299F is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.207 H 332.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AB299F
RGBrgb(171, 41, 159)
HSLhsl(306, 61%, 42%)
HSVhsv(306, 76%, 67%)
CMYKcmyk(0%, 76%, 7%, 32.9%)
CIE-LABlab(42.38, 63.70, -35.03)
CIE-LCHlch(42.38, 72.70, 331.20°)
OKLaboklab(53.07% 0.183 -0.0963)
OKLCHoklch(53.07% 0.207 332.2)
XYZxyz(23.8456, 12.7490, 33.9991)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB299F #29AB35
analogous
#7629AB #AB299F #AB295E
triadic
#AB299F #9FAB29 #299FAB
tetradic
#AB299F #AB7629 #29AB35 #295EAB
square
#AB299F #AB7629 #29AB35 #295EAB
split-complementary
#AB299F #5EAB29 #29AB76
monochromatic
#481143 #7A1D71 #AB299F #D140C4 #DD71D3

Accessibility & contrast

On white

5.92
#AB299F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB299F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB299F
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB299F#FFFFFF#000000##FFFFFF
##AB299F1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2058A2
Deuteranopia (green-blind)
#546A9C
Tritanopia (blue-blind)
#B23862
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab299f;
/* rgb */ color: rgb(171, 41, 159);
/* oklch */ color: oklch(53.1% 0.207 332.2);
Tailwind
colors: {
  custom: {
    50: '#c871bc',
    500: '#ab299f',
    950: '#000000',
  },
}
SCSS
$custom: #ab299f;
$custom-light: #c871bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab299f",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 305.538,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53071,
    "c": 0.20683,
    "h": 332.2
  },
  "luminance": 0.12747
}

Semantic roles & 50–950 ramp

primary
#AB299F
secondary
#6CC474
accent
#E45243
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB299F

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

Preview Lab → · Contrast checker → · Palette generator →

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