#AB28A1#AB28A1

#AB28A1 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.209 H 331.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AB28A1
RGBrgb(171, 40, 161)
HSLhsl(305, 62%, 41%)
HSVhsv(305, 77%, 67%)
CMYKcmyk(0%, 76.6%, 5.8%, 32.9%)
CIE-LABlab(42.39, 64.31, -36.22)
CIE-LCHlch(42.39, 73.81, 330.61°)
OKLaboklab(53.11% 0.184 -0.0998)
OKLCHoklch(53.11% 0.209 331.5)
XYZxyz(23.9864, 12.7507, 34.9091)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A1 #28AB32
analogous
#7428AB #AB28A1 #AB2860
triadic
#AB28A1 #A1AB28 #28A1AB
tetradic
#AB28A1 #AB7428 #28AB32 #2860AB
square
#AB28A1 #AB7428 #28AB32 #2860AB
split-complementary
#AB28A1 #60AB28 #28AB74
monochromatic
#481144 #791C72 #AB28A1 #D23EC7 #DE70D5

Accessibility & contrast

On white

5.92
#AB28A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB28A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A1#FFFFFF#000000##FFFFFF
##AB28A11.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C58A4
Deuteranopia (green-blind)
#536A9E
Tritanopia (blue-blind)
#B23963
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab28a1;
/* rgb */ color: rgb(171, 40, 161);
/* oklch */ color: oklch(53.1% 0.209 331.5);
Tailwind
colors: {
  custom: {
    50: '#c871bd',
    500: '#ab28a1',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a1;
$custom-light: #c871bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a1",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 304.58,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53108,
    "c": 0.20927,
    "h": 331.5
  },
  "luminance": 0.12749
}

Semantic roles & 50–950 ramp

primary
#AB28A1
secondary
#6AC471
accent
#E54F43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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