#AB27A6#AB27A6

#AB27A6 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.214 H 329.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AB27A6
RGBrgb(171, 39, 166)
HSLhsl(302, 63%, 41%)
HSVhsv(302, 77%, 67%)
CMYKcmyk(0%, 77.2%, 2.9%, 32.9%)
CIE-LABlab(42.56, 65.38, -38.94)
CIE-LCHlch(42.56, 76.10, 329.23°)
OKLaboklab(53.32% 0.1848 -0.1077)
OKLCHoklch(53.32% 0.214 329.8)
XYZxyz(24.4029, 12.8641, 37.2667)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A6 #27AB2C
analogous
#6E27AB #AB27A6 #AB2764
triadic
#AB27A6 #A6AB27 #27A6AB
tetradic
#AB27A6 #AB6E27 #27AB2C #2764AB
square
#AB27A6 #AB6E27 #27AB2C #2764AB
split-complementary
#AB27A6 #64AB27 #27AB6E
monochromatic
#471045 #791C76 #AB27A6 #D33DCD #DE6EDA

Accessibility & contrast

On white

5.88
#AB27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27A6
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A6#FFFFFF#000000##FFFFFF
##AB27A61.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A9
Deuteranopia (green-blind)
#506BA3
Tritanopia (blue-blind)
#B13B66
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab27a6;
/* rgb */ color: rgb(171, 39, 166);
/* oklch */ color: oklch(53.3% 0.214 329.8);
Tailwind
colors: {
  custom: {
    50: '#c871c1',
    500: '#ab27a6',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a6;
$custom-light: #c871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a6",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 302.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53319,
    "c": 0.2139,
    "h": 329.8
  },
  "luminance": 0.12862
}

Semantic roles & 50–950 ramp

primary
#AB27A6
secondary
#69C56D
accent
#E64842
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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