#AB27A1#AB27A1

#AB27A1 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.210 H 331.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AB27A1
RGBrgb(171, 39, 161)
HSLhsl(305, 63%, 41%)
HSVhsv(305, 77%, 67%)
CMYKcmyk(0%, 77.2%, 5.8%, 32.9%)
CIE-LABlab(42.28, 64.60, -36.38)
CIE-LCHlch(42.28, 74.14, 330.61°)
OKLaboklab(53.04% 0.1848 -0.1003)
OKLCHoklch(53.04% 0.21 331.5)
XYZxyz(23.9531, 12.6842, 34.8980)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A1 #27AB31
analogous
#7327AB #AB27A1 #AB275F
triadic
#AB27A1 #A1AB27 #27A1AB
tetradic
#AB27A1 #AB7327 #27AB31 #275FAB
square
#AB27A1 #AB7327 #27AB31 #275FAB
split-complementary
#AB27A1 #5FAB27 #27AB73
monochromatic
#471043 #791C72 #AB27A1 #D33DC7 #DE6ED6

Accessibility & contrast

On white

5.94
#AB27A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB27A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27A1
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A1#FFFFFF#000000##FFFFFF
##AB27A11.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A58A4
Deuteranopia (green-blind)
#536A9E
Tritanopia (blue-blind)
#B23863
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab27a1;
/* rgb */ color: rgb(171, 39, 161);
/* oklch */ color: oklch(53.0% 0.210 331.5);
Tailwind
colors: {
  custom: {
    50: '#c871bd',
    500: '#ab27a1',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a1;
$custom-light: #c871bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a1",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 304.545,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53035,
    "c": 0.21023,
    "h": 331.5
  },
  "luminance": 0.12682
}

Semantic roles & 50–950 ramp

primary
#AB27A1
secondary
#69C570
accent
#E64E42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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