#AB28AC#AB28AC

#AB28AC is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.217 H 327.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB28AC
RGBrgb(171, 40, 172)
HSLhsl(300, 62%, 42%)
HSVhsv(300, 77%, 67%)
CMYKcmyk(0.6%, 76.7%, 0%, 32.5%)
CIE-LABlab(43.00, 66.06, -41.81)
CIE-LCHlch(43.00, 78.18, 327.67°)
OKLaboklab(53.74% 0.1839 -0.116)
OKLCHoklch(53.74% 0.217 327.8)
XYZxyz(24.9994, 13.1559, 40.2444)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28AC #29AC28
analogous
#6928AC #AB28AC #AC286B
triadic
#AB28AC #ACAB28 #28ACAB
tetradic
#AB28AC #AC6928 #29AC28 #286BAC
square
#AB28AC #AC6928 #29AC28 #286BAC
split-complementary
#AB28AC #6BAC28 #28AC69
monochromatic
#481149 #7A1C7A #AB28AC #D13FD2 #DD71DE

Accessibility & contrast

On white

5.78
#AB28AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB28AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28AC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28AC#FFFFFF#000000##FFFFFF
##AB28AC1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#4D6BA9
Tritanopia (blue-blind)
#B03E69
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab28ac;
/* rgb */ color: rgb(171, 40, 172);
/* oklch */ color: oklch(53.7% 0.217 327.8);
Tailwind
colors: {
  custom: {
    50: '#c871c5',
    500: '#ab28ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab28ac;
$custom-light: #c871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28ac",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 299.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53742,
    "c": 0.21743,
    "h": 327.8
  },
  "luminance": 0.13154
}

Semantic roles & 50–950 ramp

primary
#AB28AC
secondary
#6CC56B
accent
#E54244
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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