#AB28A9#AB28A9

#AB28A9 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.215 H 328.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AB28A9
RGBrgb(171, 40, 169)
HSLhsl(301, 62%, 41%)
HSVhsv(301, 77%, 67%)
CMYKcmyk(0%, 76.6%, 1.2%, 32.9%)
CIE-LABlab(42.83, 65.57, -40.30)
CIE-LCHlch(42.83, 76.97, 328.43°)
OKLaboklab(53.57% 0.184 -0.1116)
OKLCHoklch(53.57% 0.215 328.8)
XYZxyz(24.7146, 13.0420, 38.7441)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A9 #28AB2A
analogous
#6C28AB #AB28A9 #AB2868
triadic
#AB28A9 #A9AB28 #28A9AB
tetradic
#AB28A9 #AB6C28 #28AB2A #2868AB
square
#AB28A9 #AB6C28 #28AB2A #2868AB
split-complementary
#AB28A9 #68AB28 #28AB6C
monochromatic
#481147 #791C78 #AB28A9 #D23ED0 #DE70DC

Accessibility & contrast

On white

5.82
#AB28A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB28A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A9
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A9#FFFFFF#000000##FFFFFF
##AB28A91.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5AAC
Deuteranopia (green-blind)
#4F6BA6
Tritanopia (blue-blind)
#B13D68
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28a9;
/* rgb */ color: rgb(171, 40, 169);
/* oklch */ color: oklch(53.6% 0.215 328.8);
Tailwind
colors: {
  custom: {
    50: '#c871c3',
    500: '#ab28a9',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a9;
$custom-light: #c871c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a9",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 300.916,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53565,
    "c": 0.21518,
    "h": 328.8
  },
  "luminance": 0.1304
}

Semantic roles & 50–950 ramp

primary
#AB28A9
secondary
#6AC46C
accent
#E54543
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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