#AB289F#AB289F

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

Color values

HEX#AB289F
RGBrgb(171, 40, 159)
HSLhsl(305, 62%, 41%)
HSVhsv(305, 77%, 67%)
CMYKcmyk(0%, 76.6%, 7%, 32.9%)
CIE-LABlab(42.28, 64.00, -35.19)
CIE-LCHlch(42.28, 73.04, 331.20°)
OKLaboklab(53% 0.1839 -0.0968)
OKLCHoklch(53% 0.208 332.2)
XYZxyz(23.8115, 12.6807, 33.9877)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB289F #28AB34
analogous
#7628AB #AB289F #AB285E
triadic
#AB289F #9FAB28 #289FAB
tetradic
#AB289F #AB7628 #28AB34 #285EAB
square
#AB289F #AB7628 #28AB34 #285EAB
split-complementary
#AB289F #5EAB28 #28AB76
monochromatic
#481143 #791C71 #AB289F #D23EC4 #DE70D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB289F#FFFFFF#000000##FFFFFF
##AB289F1.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)
#1E58A2
Deuteranopia (green-blind)
#546A9C
Tritanopia (blue-blind)
#B23862
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab289f;
/* rgb */ color: rgb(171, 40, 159);
/* oklch */ color: oklch(53.0% 0.208 332.2);
Tailwind
colors: {
  custom: {
    50: '#c871bc',
    500: '#ab289f',
    950: '#000000',
  },
}
SCSS
$custom: #ab289f;
$custom-light: #c871bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab289f",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 305.496,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52996,
    "c": 0.20782,
    "h": 332.2
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#AB289F
secondary
#6AC473
accent
#E55243
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB289F

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

Preview Lab → · Contrast checker → · Palette generator →

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