#AB24B1#AB24B1

#AB24B1 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.225 H 326.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AB24B1
RGBrgb(171, 36, 177)
HSLhsl(297, 66%, 42%)
HSVhsv(297, 80%, 69%)
CMYKcmyk(3.4%, 79.7%, 0%, 30.6%)
CIE-LABlab(42.91, 67.98, -44.92)
CIE-LCHlch(42.91, 81.48, 326.55°)
OKLaboklab(53.77% 0.1868 -0.125)
OKLCHoklch(53.77% 0.225 326.2)
XYZxyz(25.3608, 13.0958, 42.7784)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB24B1 #2AB124
analogous
#6524B1 #AB24B1 #B12471
triadic
#AB24B1 #B1AB24 #24B1AB
tetradic
#AB24B1 #B16524 #2AB124 #2471B1
square
#AB24B1 #B16524 #2AB124 #2471B1
split-complementary
#AB24B1 #71B124 #24B165
monochromatic
#490F4B #7A1A7E #AB24B1 #D13BD7 #DD6EE1

Accessibility & contrast

On white

5.80
#AB24B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB24B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB24B1
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB24B1#FFFFFF#000000##FFFFFF
##AB24B11.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#486BAE
Tritanopia (blue-blind)
#AF3F6B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab24b1;
/* rgb */ color: rgb(171, 36, 177);
/* oklch */ color: oklch(53.8% 0.225 326.2);
Tailwind
colors: {
  custom: {
    50: '#c870c9',
    500: '#ab24b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab24b1;
$custom-light: #c870c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab24b1",
  "rgb": {
    "r": 171,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 297.447,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53772,
    "c": 0.22476,
    "h": 326.2
  },
  "luminance": 0.13094
}

Semantic roles & 50–950 ramp

primary
#AB24B1
secondary
#6DC869
accent
#E93F46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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