#AB27A9#AB27A9

#AB27A9 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.216 H 328.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB27A9
RGBrgb(171, 39, 169)
HSLhsl(301, 63%, 41%)
HSVhsv(301, 77%, 67%)
CMYKcmyk(0%, 77.2%, 1.2%, 32.9%)
CIE-LABlab(42.73, 65.86, -40.46)
CIE-LCHlch(42.73, 77.30, 328.44°)
OKLaboklab(53.49% 0.1848 -0.1121)
OKLCHoklch(53.49% 0.216 328.8)
XYZxyz(24.6813, 12.9754, 38.7330)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A9 #27AB29
analogous
#6B27AB #AB27A9 #AB2767
triadic
#AB27A9 #A9AB27 #27A9AB
tetradic
#AB27A9 #AB6B27 #27AB29 #2767AB
square
#AB27A9 #AB6B27 #27AB29 #2767AB
split-complementary
#AB27A9 #67AB27 #27AB6B
monochromatic
#471046 #791C78 #AB27A9 #D33DD0 #DE6EDC

Accessibility & contrast

On white

5.84
#AB27A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB27A9
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A9#FFFFFF#000000##FFFFFF
##AB27A91.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075AAC
Deuteranopia (green-blind)
#4E6BA6
Tritanopia (blue-blind)
#B13C67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab27a9;
/* rgb */ color: rgb(171, 39, 169);
/* oklch */ color: oklch(53.5% 0.216 328.8);
Tailwind
colors: {
  custom: {
    50: '#c871c3',
    500: '#ab27a9',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a9;
$custom-light: #c871c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a9",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 300.909,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.21612,
    "h": 328.8
  },
  "luminance": 0.12974
}

Semantic roles & 50–950 ramp

primary
#AB27A9
secondary
#69C56A
accent
#E64442
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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