#AB28AA#AB28AA

#AB28AA is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.216 H 328.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AB28AA
RGBrgb(171, 40, 170)
HSLhsl(300, 62%, 41%)
HSVhsv(300, 77%, 67%)
CMYKcmyk(0%, 76.6%, 0.6%, 32.9%)
CIE-LABlab(42.88, 65.73, -40.80)
CIE-LCHlch(42.88, 77.37, 328.17°)
OKLaboklab(53.62% 0.184 -0.1131)
OKLCHoklch(53.62% 0.216 328.4)
XYZxyz(24.8088, 13.0797, 39.2404)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28AA #28AB29
analogous
#6B28AB #AB28AA #AB2869
triadic
#AB28AA #AAAB28 #28AAAB
tetradic
#AB28AA #AB6B28 #28AB29 #2869AB
square
#AB28AA #AB6B28 #28AB29 #2869AB
split-complementary
#AB28AA #69AB28 #28AB6B
monochromatic
#481147 #791C79 #AB28AA #D23ED1 #DE70DD

Accessibility & contrast

On white

5.81
#AB28AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB28AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28AA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28AA#FFFFFF#000000##FFFFFF
##AB28AA1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075AAD
Deuteranopia (green-blind)
#4E6BA7
Tritanopia (blue-blind)
#B13D68
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28aa;
/* rgb */ color: rgb(171, 40, 170);
/* oklch */ color: oklch(53.6% 0.216 328.4);
Tailwind
colors: {
  custom: {
    50: '#c871c4',
    500: '#ab28aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab28aa;
$custom-light: #c871c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28aa",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 300.458,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53624,
    "c": 0.21593,
    "h": 328.4
  },
  "luminance": 0.13078
}

Semantic roles & 50–950 ramp

primary
#AB28AA
secondary
#6AC46B
accent
#E54443
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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