#AB28A5#AB28A5

#AB28A5 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.212 H 330.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB28A5
RGBrgb(171, 40, 165)
HSLhsl(303, 62%, 41%)
HSVhsv(303, 77%, 67%)
CMYKcmyk(0%, 76.6%, 3.5%, 32.9%)
CIE-LABlab(42.60, 64.94, -38.27)
CIE-LCHlch(42.60, 75.37, 329.49°)
OKLaboklab(53.33% 0.184 -0.1057)
OKLCHoklch(53.33% 0.212 330.1)
XYZxyz(24.3448, 12.8940, 36.7966)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A5 #28AB2E
analogous
#7028AB #AB28A5 #AB2864
triadic
#AB28A5 #A5AB28 #28A5AB
tetradic
#AB28A5 #AB7028 #28AB2E #2864AB
square
#AB28A5 #AB7028 #28AB2E #2864AB
split-complementary
#AB28A5 #64AB28 #28AB70
monochromatic
#481145 #791C75 #AB28A5 #D23ECB #DE70D8

Accessibility & contrast

On white

5.87
#AB28A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB28A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A5#FFFFFF#000000##FFFFFF
##AB28A51.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#516BA2
Tritanopia (blue-blind)
#B13B65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28a5;
/* rgb */ color: rgb(171, 40, 165);
/* oklch */ color: oklch(53.3% 0.212 330.1);
Tailwind
colors: {
  custom: {
    50: '#c871c0',
    500: '#ab28a5',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a5;
$custom-light: #c871c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a5",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 302.748,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53334,
    "c": 0.21221,
    "h": 330.1
  },
  "luminance": 0.12892
}

Semantic roles & 50–950 ramp

primary
#AB28A5
secondary
#6AC46F
accent
#E54A43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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