#AB27AC#AB27AC

#AB27AC is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.218 H 327.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AB27AC
RGBrgb(171, 39, 172)
HSLhsl(300, 63%, 41%)
HSVhsv(300, 77%, 67%)
CMYKcmyk(0.6%, 77.3%, 0%, 32.5%)
CIE-LABlab(42.90, 66.35, -41.97)
CIE-LCHlch(42.90, 78.51, 327.68°)
OKLaboklab(53.67% 0.1847 -0.1165)
OKLCHoklch(53.67% 0.218 327.8)
XYZxyz(24.9662, 13.0894, 40.2333)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27AC #28AC27
analogous
#6927AC #AB27AC #AC276B
triadic
#AB27AC #ACAB27 #27ACAB
tetradic
#AB27AC #AC6927 #28AC27 #276BAC
square
#AB27AC #AC6927 #28AC27 #276BAC
split-complementary
#AB27AC #6BAC27 #27AC69
monochromatic
#481048 #791C7A #AB27AC #D23DD3 #DE6FDE

Accessibility & contrast

On white

5.80
#AB27AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB27AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27AC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27AC#FFFFFF#000000##FFFFFF
##AB27AC1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#4C6BA9
Tritanopia (blue-blind)
#B03E69
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab27ac;
/* rgb */ color: rgb(171, 39, 172);
/* oklch */ color: oklch(53.7% 0.218 327.8);
Tailwind
colors: {
  custom: {
    50: '#c871c5',
    500: '#ab27ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab27ac;
$custom-light: #c871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27ac",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 299.549,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53671,
    "c": 0.21836,
    "h": 327.8
  },
  "luminance": 0.13088
}

Semantic roles & 50–950 ramp

primary
#AB27AC
secondary
#6AC56A
accent
#E64243
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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