#AB28AF#AB28AF

#AB28AF is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.220 H 326.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AB28AF
RGBrgb(171, 40, 175)
HSLhsl(298, 63%, 42%)
HSVhsv(298, 77%, 69%)
CMYKcmyk(2.3%, 77.1%, 0%, 31.4%)
CIE-LABlab(43.17, 66.55, -43.31)
CIE-LCHlch(43.17, 79.40, 326.94°)
OKLaboklab(53.92% 0.1838 -0.1204)
OKLCHoklch(53.92% 0.22 326.8)
XYZxyz(25.2908, 13.2725, 41.7789)
Luminance0.1327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28AF #2CAF28
analogous
#6728AF #AB28AF #AF2870
triadic
#AB28AF #AFAB28 #28AFAB
tetradic
#AB28AF #AF6728 #2CAF28 #2870AF
square
#AB28AF #AF6728 #2CAF28 #2870AF
split-complementary
#AB28AF #70AF28 #28AF67
monochromatic
#4A114B #7A1D7D #AB28AF #CF41D4 #DC73DF

Accessibility & contrast

On white

5.75
#AB28AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AB28AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28AF
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28AF#FFFFFF#000000##FFFFFF
##AB28AF1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#4B6CAC
Tritanopia (blue-blind)
#B0406B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab28af;
/* rgb */ color: rgb(171, 40, 175);
/* oklch */ color: oklch(53.9% 0.220 326.8);
Tailwind
colors: {
  custom: {
    50: '#c872c7',
    500: '#ab28af',
    950: '#000000',
  },
}
SCSS
$custom: #ab28af;
$custom-light: #c872c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28af",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 298.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53921,
    "c": 0.21971,
    "h": 326.8
  },
  "luminance": 0.13271
}

Semantic roles & 50–950 ramp

primary
#AB28AF
secondary
#6FC66D
accent
#E64247
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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