#AB28A8#AB28A8

#AB28A8 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.214 H 329.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AB28A8
RGBrgb(171, 40, 168)
HSLhsl(301, 62%, 41%)
HSVhsv(301, 77%, 67%)
CMYKcmyk(0%, 76.6%, 1.8%, 32.9%)
CIE-LABlab(42.77, 65.41, -39.79)
CIE-LCHlch(42.77, 76.57, 328.69°)
OKLaboklab(53.51% 0.184 -0.1101)
OKLCHoklch(53.51% 0.214 329.1)
XYZxyz(24.6211, 13.0046, 38.2516)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A8 #28AB2B
analogous
#6D28AB #AB28A8 #AB2867
triadic
#AB28A8 #A8AB28 #28A8AB
tetradic
#AB28A8 #AB6D28 #28AB2B #2867AB
square
#AB28A8 #AB6D28 #28AB2B #2867AB
split-complementary
#AB28A8 #67AB28 #28AB6D
monochromatic
#481147 #791C77 #AB28A8 #D23ECF #DE70DB

Accessibility & contrast

On white

5.83
#AB28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A8
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A8#FFFFFF#000000##FFFFFF
##AB28A81.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5AAB
Deuteranopia (green-blind)
#4F6BA5
Tritanopia (blue-blind)
#B13C67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28a8;
/* rgb */ color: rgb(171, 40, 168);
/* oklch */ color: oklch(53.5% 0.214 329.1);
Tailwind
colors: {
  custom: {
    50: '#c871c2',
    500: '#ab28a8',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a8;
$custom-light: #c871c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a8",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 301.374,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53507,
    "c": 0.21443,
    "h": 329.1
  },
  "luminance": 0.13003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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