#AB27B1#AB27B1

#AB27B1 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.222 H 326.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AB27B1
RGBrgb(171, 39, 177)
HSLhsl(297, 64%, 42%)
HSVhsv(297, 78%, 69%)
CMYKcmyk(3.4%, 78%, 0%, 30.6%)
CIE-LABlab(43.19, 67.16, -44.47)
CIE-LCHlch(43.19, 80.55, 326.49°)
OKLaboklab(53.97% 0.1845 -0.1237)
OKLCHoklch(53.97% 0.222 326.1)
XYZxyz(25.4554, 13.2851, 42.8100)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27B1 #2DB127
analogous
#6627B1 #AB27B1 #B12772
triadic
#AB27B1 #B1AB27 #27B1AB
tetradic
#AB27B1 #B16627 #2DB127 #2772B1
square
#AB27B1 #B16627 #2DB127 #2772B1
split-complementary
#AB27B1 #72B127 #27B166
monochromatic
#4A114D #7B1C7F #AB27B1 #CE40D5 #DB72E0

Accessibility & contrast

On white

5.74
#AB27B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB27B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27B1
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27B1#FFFFFF#000000##FFFFFF
##AB27B11.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#496CAE
Tritanopia (blue-blind)
#AF406C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab27b1;
/* rgb */ color: rgb(171, 39, 177);
/* oklch */ color: oklch(54.0% 0.222 326.1);
Tailwind
colors: {
  custom: {
    50: '#c871c9',
    500: '#ab27b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab27b1;
$custom-light: #c871c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27b1",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 297.391,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53972,
    "c": 0.22214,
    "h": 326.1
  },
  "luminance": 0.13283
}

Semantic roles & 50–950 ramp

primary
#AB27B1
secondary
#71C76D
accent
#E74148
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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