#AB28A4#AB28A4

#AB28A4 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.211 H 330.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AB28A4
RGBrgb(171, 40, 164)
HSLhsl(303, 62%, 41%)
HSVhsv(303, 77%, 67%)
CMYKcmyk(0%, 76.6%, 4.1%, 32.9%)
CIE-LABlab(42.55, 64.78, -37.76)
CIE-LCHlch(42.55, 74.98, 329.76°)
OKLaboklab(53.28% 0.184 -0.1042)
OKLCHoklch(53.28% 0.211 330.5)
XYZxyz(24.2541, 12.8578, 36.3191)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A4 #28AB2F
analogous
#7128AB #AB28A4 #AB2863
triadic
#AB28A4 #A4AB28 #28A4AB
tetradic
#AB28A4 #AB7128 #28AB2F #2863AB
square
#AB28A4 #AB7128 #28AB2F #2863AB
split-complementary
#AB28A4 #63AB28 #28AB71
monochromatic
#481145 #791C74 #AB28A4 #D23ECA #DE70D8

Accessibility & contrast

On white

5.88
#AB28A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB28A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A4
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A4#FFFFFF#000000##FFFFFF
##AB28A41.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A7
Deuteranopia (green-blind)
#516BA1
Tritanopia (blue-blind)
#B23A65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab28a4;
/* rgb */ color: rgb(171, 40, 164);
/* oklch */ color: oklch(53.3% 0.211 330.5);
Tailwind
colors: {
  custom: {
    50: '#c871bf',
    500: '#ab28a4',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a4;
$custom-light: #c871bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a4",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 303.206,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53277,
    "c": 0.21147,
    "h": 330.5
  },
  "luminance": 0.12856
}

Semantic roles & 50–950 ramp

primary
#AB28A4
secondary
#6AC46F
accent
#E54B43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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