#AB28B0#AB28B0

#AB28B0 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.220 H 326.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB28B0
RGBrgb(171, 40, 176)
HSLhsl(298, 63%, 42%)
HSVhsv(298, 77%, 69%)
CMYKcmyk(2.8%, 77.3%, 0%, 31%)
CIE-LABlab(43.23, 66.71, -43.81)
CIE-LCHlch(43.23, 79.81, 326.71°)
OKLaboklab(53.98% 0.1837 -0.1218)
OKLCHoklch(53.98% 0.22 326.5)
XYZxyz(25.3894, 13.3119, 42.2981)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28B0 #2DB028
analogous
#6728B0 #AB28B0 #B02871
triadic
#AB28B0 #B0AB28 #28B0AB
tetradic
#AB28B0 #B06728 #2DB028 #2871B0
square
#AB28B0 #B06728 #2DB028 #2871B0
split-complementary
#AB28B0 #71B028 #28B067
monochromatic
#4A114C #7B1D7E #AB28B0 #CE41D4 #DB73DF

Accessibility & contrast

On white

5.73
#AB28B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB28B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28B0
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28B0#FFFFFF#000000##FFFFFF
##AB28B01.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#4A6CAD
Tritanopia (blue-blind)
#B0406C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab28b0;
/* rgb */ color: rgb(171, 40, 176);
/* oklch */ color: oklch(54.0% 0.220 326.5);
Tailwind
colors: {
  custom: {
    50: '#c872c8',
    500: '#ab28b0',
    950: '#000000',
  },
}
SCSS
$custom: #ab28b0;
$custom-light: #c872c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28b0",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 297.794,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.22047,
    "h": 326.5
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#AB28B0
secondary
#71C66D
accent
#E64248
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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