#AB28B3#AB28B3

#AB28B3 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.223 H 325.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AB28B3
RGBrgb(171, 40, 179)
HSLhsl(297, 63%, 43%)
HSVhsv(297, 78%, 70%)
CMYKcmyk(4.5%, 77.7%, 0%, 29.8%)
CIE-LABlab(43.41, 67.21, -45.30)
CIE-LCHlch(43.41, 81.05, 326.02°)
OKLaboklab(54.17% 0.1836 -0.1262)
OKLCHoklch(54.17% 0.223 325.5)
XYZxyz(25.6895, 13.4319, 43.8786)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28B3 #30B328
analogous
#6628B3 #AB28B3 #B32875
triadic
#AB28B3 #B3AB28 #28B3AB
tetradic
#AB28B3 #B36628 #30B328 #2875B3
square
#AB28B3 #B36628 #30B328 #2875B3
split-complementary
#AB28B3 #75B328 #28B366
monochromatic
#4B124F #7B1D81 #AB28B3 #CD43D5 #DA75E0

Accessibility & contrast

On white

5.70
#AB28B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AB28B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28B3
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28B3#FFFFFF#000000##FFFFFF
##AB28B31.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#486CB0
Tritanopia (blue-blind)
#AF426D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab28b3;
/* rgb */ color: rgb(171, 40, 179);
/* oklch */ color: oklch(54.2% 0.223 325.5);
Tailwind
colors: {
  custom: {
    50: '#c872ca',
    500: '#ab28b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab28b3;
$custom-light: #c872ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28b3",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 296.547,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54165,
    "c": 0.22276,
    "h": 325.5
  },
  "luminance": 0.1343
}

Semantic roles & 50–950 ramp

primary
#AB28B3
secondary
#74C86F
accent
#E6414B
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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