#AB24AC#AB24AC

#AB24AC is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.221 H 327.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB24AC
RGBrgb(171, 36, 172)
HSLhsl(300, 65%, 41%)
HSVhsv(300, 79%, 67%)
CMYKcmyk(0.6%, 79.1%, 0%, 32.5%)
CIE-LABlab(42.61, 67.17, -42.42)
CIE-LCHlch(42.61, 79.45, 327.72°)
OKLaboklab(53.47% 0.187 -0.1178)
OKLCHoklch(53.47% 0.221 327.8)
XYZxyz(24.8715, 12.9001, 40.2017)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB24AC #25AC24
analogous
#6724AC #AB24AC #AC2469
triadic
#AB24AC #ACAB24 #24ACAB
tetradic
#AB24AC #AC6724 #25AC24 #2469AC
square
#AB24AC #AC6724 #25AC24 #2469AC
split-complementary
#AB24AC #69AC24 #24AC67
monochromatic
#460F47 #791979 #AB24AC #D438D5 #DF6AE0

Accessibility & contrast

On white

5.87
#AB24AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB24AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB24AC
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB24AC#FFFFFF#000000##FFFFFF
##AB24AC1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#4B6AA9
Tritanopia (blue-blind)
#B03C68
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab24ac;
/* rgb */ color: rgb(171, 36, 172);
/* oklch */ color: oklch(53.5% 0.221 327.8);
Tailwind
colors: {
  custom: {
    50: '#c870c5',
    500: '#ab24ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab24ac;
$custom-light: #c870c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab24ac",
  "rgb": {
    "r": 171,
    "g": 36,
    "b": 172
  },
  "hsl": {
    "h": 299.559,
    "s": 65.385,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53468,
    "c": 0.22103,
    "h": 327.8
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#AB24AC
secondary
#67C666
accent
#E83F41
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB24AC

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

Preview Lab → · Contrast checker → · Palette generator →

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