#AB28A7#AB28A7

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

Color values

HEX#AB28A7
RGBrgb(171, 40, 167)
HSLhsl(302, 62%, 41%)
HSVhsv(302, 77%, 67%)
CMYKcmyk(0%, 76.6%, 2.3%, 32.9%)
CIE-LABlab(42.71, 65.25, -39.29)
CIE-LCHlch(42.71, 76.17, 328.95°)
OKLaboklab(53.45% 0.184 -0.1087)
OKLCHoklch(53.45% 0.214 329.4)
XYZxyz(24.5283, 12.9674, 37.7628)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A7 #28AB2C
analogous
#6E28AB #AB28A7 #AB2866
triadic
#AB28A7 #A7AB28 #28A7AB
tetradic
#AB28A7 #AB6E28 #28AB2C #2866AB
square
#AB28A7 #AB6E28 #28AB2C #2866AB
split-complementary
#AB28A7 #66AB28 #28AB6E
monochromatic
#481146 #791C77 #AB28A7 #D23ECD #DE70DA

Accessibility & contrast

On white

5.84
#AB28A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB28A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28A7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A7#FFFFFF#000000##FFFFFF
##AB28A71.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#506BA4
Tritanopia (blue-blind)
#B13C66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28a7;
/* rgb */ color: rgb(171, 40, 167);
/* oklch */ color: oklch(53.4% 0.214 329.4);
Tailwind
colors: {
  custom: {
    50: '#c871c1',
    500: '#ab28a7',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a7;
$custom-light: #c871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a7",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 301.832,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53449,
    "c": 0.21369,
    "h": 329.4
  },
  "luminance": 0.12966
}

Semantic roles & 50–950 ramp

primary
#AB28A7
secondary
#6AC46D
accent
#E54843
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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