#AB28A6#AB28A6

#AB28A6 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.213 H 329.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AB28A6
RGBrgb(171, 40, 166)
HSLhsl(302, 62%, 41%)
HSVhsv(302, 77%, 67%)
CMYKcmyk(0%, 76.6%, 2.9%, 32.9%)
CIE-LABlab(42.66, 65.09, -38.78)
CIE-LCHlch(42.66, 75.77, 329.22°)
OKLaboklab(53.39% 0.184 -0.1072)
OKLCHoklch(53.39% 0.213 329.8)
XYZxyz(24.4362, 12.9306, 37.2778)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A6 #28AB2D
analogous
#6F28AB #AB28A6 #AB2865
triadic
#AB28A6 #A6AB28 #28A6AB
tetradic
#AB28A6 #AB6F28 #28AB2D #2865AB
square
#AB28A6 #AB6F28 #28AB2D #2865AB
split-complementary
#AB28A6 #65AB28 #28AB6F
monochromatic
#481146 #791C76 #AB28A6 #D23ECC #DE70D9

Accessibility & contrast

On white

5.86
#AB28A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB28A6
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A6#FFFFFF#000000##FFFFFF
##AB28A61.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125AA9
Deuteranopia (green-blind)
#506BA3
Tritanopia (blue-blind)
#B13B66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab28a6;
/* rgb */ color: rgb(171, 40, 166);
/* oklch */ color: oklch(53.4% 0.213 329.8);
Tailwind
colors: {
  custom: {
    50: '#c871c1',
    500: '#ab28a6',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a6;
$custom-light: #c871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a6",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 302.29,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53391,
    "c": 0.21295,
    "h": 329.8
  },
  "luminance": 0.12929
}

Semantic roles & 50–950 ramp

primary
#AB28A6
secondary
#6AC46E
accent
#E54943
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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