#AB27A8#AB27A8

#AB27A8 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.215 H 329.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB27A8
RGBrgb(171, 39, 168)
HSLhsl(301, 63%, 41%)
HSVhsv(301, 77%, 67%)
CMYKcmyk(0%, 77.2%, 1.8%, 32.9%)
CIE-LABlab(42.67, 65.70, -39.95)
CIE-LCHlch(42.67, 76.90, 328.70°)
OKLaboklab(53.44% 0.1848 -0.1106)
OKLCHoklch(53.44% 0.215 329.1)
XYZxyz(24.5878, 12.9380, 38.2405)
Luminance0.1294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A8 #27AB2A
analogous
#6C27AB #AB27A8 #AB2766
triadic
#AB27A8 #A8AB27 #27A8AB
tetradic
#AB27A8 #AB6C27 #27AB2A #2766AB
square
#AB27A8 #AB6C27 #27AB2A #2766AB
split-complementary
#AB27A8 #66AB27 #27AB6C
monochromatic
#471046 #791C77 #AB27A8 #D33DCF #DE6EDB

Accessibility & contrast

On white

5.85
#AB27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB27A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27A8
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A8#FFFFFF#000000##FFFFFF
##AB27A81.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5AAB
Deuteranopia (green-blind)
#4F6BA5
Tritanopia (blue-blind)
#B13C67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab27a8;
/* rgb */ color: rgb(171, 39, 168);
/* oklch */ color: oklch(53.4% 0.215 329.1);
Tailwind
colors: {
  custom: {
    50: '#c871c2',
    500: '#ab27a8',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a8;
$custom-light: #c871c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a8",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 301.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53435,
    "c": 0.21538,
    "h": 329.1
  },
  "luminance": 0.12936
}

Semantic roles & 50–950 ramp

primary
#AB27A8
secondary
#69C56B
accent
#E64642
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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