#AB27A0#AB27A0

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

Color values

HEX#AB27A0
RGBrgb(171, 39, 160)
HSLhsl(305, 63%, 41%)
HSVhsv(305, 77%, 67%)
CMYKcmyk(0%, 77.2%, 6.4%, 32.9%)
CIE-LABlab(42.23, 64.45, -35.87)
CIE-LCHlch(42.23, 73.76, 330.90°)
OKLaboklab(52.98% 0.1848 -0.0988)
OKLCHoklch(52.98% 0.21 331.9)
XYZxyz(23.8653, 12.6490, 34.4355)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A0 #27AB32
analogous
#7427AB #AB27A0 #AB275E
triadic
#AB27A0 #A0AB27 #27A0AB
tetradic
#AB27A0 #AB7427 #27AB32 #275EAB
square
#AB27A0 #AB7427 #27AB32 #275EAB
split-complementary
#AB27A0 #5EAB27 #27AB74
monochromatic
#471043 #791C71 #AB27A0 #D33DC6 #DE6ED5

Accessibility & contrast

On white

5.95
#AB27A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB27A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27A0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A0#FFFFFF#000000##FFFFFF
##AB27A01.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C58A3
Deuteranopia (green-blind)
#536A9D
Tritanopia (blue-blind)
#B23762
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab27a0;
/* rgb */ color: rgb(171, 39, 160);
/* oklch */ color: oklch(53.0% 0.210 331.9);
Tailwind
colors: {
  custom: {
    50: '#c871bc',
    500: '#ab27a0',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a0;
$custom-light: #c871bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a0",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 305,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52979,
    "c": 0.20951,
    "h": 331.9
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#AB27A0
secondary
#69C571
accent
#E65042
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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