#AB28A3#AB28A3

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

Color values

HEX#AB28A3
RGBrgb(171, 40, 163)
HSLhsl(304, 62%, 41%)
HSVhsv(304, 77%, 67%)
CMYKcmyk(0%, 76.6%, 4.7%, 32.9%)
CIE-LABlab(42.49, 64.62, -37.25)
CIE-LCHlch(42.49, 74.59, 330.04°)
OKLaboklab(53.22% 0.184 -0.1028)
OKLCHoklch(53.22% 0.211 330.8)
XYZxyz(24.1642, 12.8218, 35.8454)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28A3 #28AB30
analogous
#7228AB #AB28A3 #AB2862
triadic
#AB28A3 #A3AB28 #28A3AB
tetradic
#AB28A3 #AB7228 #28AB30 #2862AB
square
#AB28A3 #AB7228 #28AB30 #2862AB
split-complementary
#AB28A3 #62AB28 #28AB72
monochromatic
#481144 #791C74 #AB28A3 #D23EC9 #DE70D7

Accessibility & contrast

On white

5.89
#AB28A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB28A3
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28A3#FFFFFF#000000##FFFFFF
##AB28A31.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1859A6
Deuteranopia (green-blind)
#526BA0
Tritanopia (blue-blind)
#B23A64
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab28a3;
/* rgb */ color: rgb(171, 40, 163);
/* oklch */ color: oklch(53.2% 0.211 330.8);
Tailwind
colors: {
  custom: {
    50: '#c871bf',
    500: '#ab28a3',
    950: '#000000',
  },
}
SCSS
$custom: #ab28a3;
$custom-light: #c871bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28a3",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 303.664,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5322,
    "c": 0.21073,
    "h": 330.8
  },
  "luminance": 0.1282
}

Semantic roles & 50–950 ramp

primary
#AB28A3
secondary
#6AC470
accent
#E54D43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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