#AB28D1#AB28D1

#AB28D1 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 56.1% C 0.246 H 316.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AB28D1
RGBrgb(171, 40, 209)
HSLhsl(287, 68%, 49%)
HSVhsv(287, 81%, 82%)
CMYKcmyk(18.2%, 80.9%, 0%, 18%)
CIE-LABlab(45.33, 72.48, -59.70)
CIE-LCHlch(45.33, 93.90, 320.52°)
OKLaboklab(56.14% 0.1799 -0.1683)
OKLCHoklch(56.14% 0.246 316.9)
XYZxyz(29.0603, 14.7802, 61.6314)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28D1 #4ED128
analogous
#5728D1 #AB28D1 #D128A3
triadic
#AB28D1 #D1AB28 #28D1AB
tetradic
#AB28D1 #D15728 #4ED128 #28A3D1
square
#AB28D1 #D15728 #4ED128 #28A3D1
split-complementary
#AB28D1 #A3D128 #28D157
monochromatic
#57146A #811E9E #AB28D1 #C057DF #D48BE9

Accessibility & contrast

On white

5.31
#AB28D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AB28D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28D1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28D1#FFFFFF#000000##FFFFFF
##AB28D11.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#296FCE
Tritanopia (blue-blind)
#A9517E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab28d1;
/* rgb */ color: rgb(171, 40, 209);
/* oklch */ color: oklch(56.1% 0.246 316.9);
Tailwind
colors: {
  custom: {
    50: '#c973e0',
    500: '#ab28d1',
    950: '#000000',
  },
}
SCSS
$custom: #ab28d1;
$custom-light: #c973e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28d1",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 286.509,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56135,
    "c": 0.24638,
    "h": 316.9
  },
  "luminance": 0.14779
}

Semantic roles & 50–950 ramp

primary
#AB28D1
secondary
#94D382
accent
#EB3D64
background
#FCF7FD
surface
#F9EDFB
border
#D2C8D4
text
#140915
muted
#827B83

Preview Lab

Preview with #AB28D1

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

Preview Lab → · Contrast checker → · Palette generator →

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