#AB27AD#AB27AD

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

Color values

HEX#AB27AD
RGBrgb(171, 39, 173)
HSLhsl(299, 63%, 42%)
HSVhsv(299, 77%, 68%)
CMYKcmyk(1.2%, 77.5%, 0%, 32.2%)
CIE-LABlab(42.96, 66.51, -42.47)
CIE-LCHlch(42.96, 78.91, 327.44°)
OKLaboklab(53.73% 0.1847 -0.1179)
OKLCHoklch(53.73% 0.219 327.4)
XYZxyz(25.0626, 13.1279, 40.7410)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27AD #29AD27
analogous
#6827AD #AB27AD #AD276C
triadic
#AB27AD #ADAB27 #27ADAB
tetradic
#AB27AD #AD6827 #29AD27 #276CAD
square
#AB27AD #AD6827 #29AD27 #276CAD
split-complementary
#AB27AD #6CAD27 #27AD68
monochromatic
#481049 #7A1C7B #AB27AD #D13ED3 #DD70DF

Accessibility & contrast

On white

5.79
#AB27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB27AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27AD
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27AD#FFFFFF#000000##FFFFFF
##AB27AD1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#4C6BAA
Tritanopia (blue-blind)
#B03E6A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab27ad;
/* rgb */ color: rgb(171, 39, 173);
/* oklch */ color: oklch(53.7% 0.219 327.4);
Tailwind
colors: {
  custom: {
    50: '#c871c6',
    500: '#ab27ad',
    950: '#000000',
  },
}
SCSS
$custom: #ab27ad;
$custom-light: #c871c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27ad",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 299.104,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.21912,
    "h": 327.4
  },
  "luminance": 0.13126
}

Semantic roles & 50–950 ramp

primary
#AB27AD
secondary
#6CC66A
accent
#E64244
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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