#AB28A2#AB28A2

#AB28A2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.210 H 331.2°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AB28A2
RGBrgb(171, 40, 162)
HSLhsl(304, 62%, 41%)
HSVhsv(304, 77%, 67%)
CMYKcmyk(0%, 76.6%, 5.3%, 32.9%)
CIE-LABlab(42.44, 64.47, -36.73)
CIE-LCHlch(42.44, 74.20, 330.32°)
OKLaboklab(53.16% 0.184 -0.1013)
OKLCHoklch(53.16% 0.21 331.2)
XYZxyz(24.0750, 12.7861, 35.3754)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A2 #28AB31
analogous
#7328AB #AB28A2 #AB2861
triadic
#AB28A2 #A2AB28 #28A2AB
tetradic
#AB28A2 #AB7328 #28AB31 #2861AB
square
#AB28A2 #AB7328 #28AB31 #2861AB
split-complementary
#AB28A2 #61AB28 #28AB73
monochromatic
#481144 #791C73 #AB28A2 #D23EC8 #DE70D6

Accessibility & contrast

On white

5.90
#AB28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A2#FFFFFF#000000##FFFFFF
##AB28A21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A5
Deuteranopia (green-blind)
#536A9F
Tritanopia (blue-blind)
#B23964
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab28a2;
/* rgb */ color: rgb(171, 40, 162);
/* oklch */ color: oklch(53.2% 0.210 331.2);
Tailwind
colors: {
  custom: {
    50: '#c871be',
    500: '#ab28a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a2;
$custom-light: #c871be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a2",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 304.122,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53164,
    "c": 0.21001,
    "h": 331.2
  },
  "luminance": 0.12784
}

Semantic roles & 50–950 ramp

primary
#AB28A2
secondary
#6AC471
accent
#E54E43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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