#AB28AB#AB28AB

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

Color values

HEX#AB28AB
RGBrgb(171, 40, 171)
HSLhsl(300, 62%, 41%)
HSVhsv(300, 77%, 67%)
CMYKcmyk(0%, 76.6%, 0%, 32.9%)
CIE-LABlab(42.94, 65.90, -41.31)
CIE-LCHlch(42.94, 77.77, 327.92°)
OKLaboklab(53.68% 0.1839 -0.1145)
OKLCHoklch(53.68% 0.217 328.1)
XYZxyz(24.9038, 13.1176, 39.7405)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28AB #28AB28
analogous
#6A28AB #AB28AB #AB286A
triadic
#AB28AB #ABAB28 #28ABAB
tetradic
#AB28AB #AB6A28 #28AB28 #286AAB
square
#AB28AB #AB6A28 #28AB28 #286AAB
split-complementary
#AB28AB #6AAB28 #28AB6A
monochromatic
#481148 #791C79 #AB28AB #D23ED2 #DE70DE

Accessibility & contrast

On white

5.80
#AB28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB28AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28AB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28AB#FFFFFF#000000##FFFFFF
##AB28AB1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035BAE
Deuteranopia (green-blind)
#4D6BA8
Tritanopia (blue-blind)
#B03E69
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28ab;
/* rgb */ color: rgb(171, 40, 171);
/* oklch */ color: oklch(53.7% 0.217 328.1);
Tailwind
colors: {
  custom: {
    50: '#c871c4',
    500: '#ab28ab',
    950: '#000000',
  },
}
SCSS
$custom: #ab28ab;
$custom-light: #c871c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28ab",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53683,
    "c": 0.21668,
    "h": 328.1
  },
  "luminance": 0.13116
}

Semantic roles & 50–950 ramp

primary
#AB28AB
secondary
#6AC46A
accent
#E54343
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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