#AB27AE#AB27AE

#AB27AE is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.220 H 327.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB27AE
RGBrgb(171, 39, 174)
HSLhsl(299, 63%, 42%)
HSVhsv(299, 78%, 68%)
CMYKcmyk(1.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(43.01, 66.67, -42.97)
CIE-LCHlch(43.01, 79.32, 327.20°)
OKLaboklab(53.79% 0.1846 -0.1194)
OKLCHoklch(53.79% 0.22 327.1)
XYZxyz(25.1597, 13.1668, 41.2525)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27AE #2AAE27
analogous
#6827AE #AB27AE #AE276E
triadic
#AB27AE #AEAB27 #27AEAB
tetradic
#AB27AE #AE6827 #2AAE27 #276EAE
square
#AB27AE #AE6827 #2AAE27 #276EAE
split-complementary
#AB27AE #6EAE27 #27AE68
monochromatic
#49114A #7A1C7C #AB27AE #D13ED4 #DD70DF

Accessibility & contrast

On white

5.78
#AB27AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB27AE
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27AE#FFFFFF#000000##FFFFFF
##AB27AE1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#4B6BAB
Tritanopia (blue-blind)
#B03F6A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab27ae;
/* rgb */ color: rgb(171, 39, 174);
/* oklch */ color: oklch(53.8% 0.220 327.1);
Tailwind
colors: {
  custom: {
    50: '#c871c7',
    500: '#ab27ae',
    950: '#000000',
  },
}
SCSS
$custom: #ab27ae;
$custom-light: #c871c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27ae",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 298.667,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53791,
    "c": 0.21988,
    "h": 327.1
  },
  "luminance": 0.13165
}

Semantic roles & 50–950 ramp

primary
#AB27AE
secondary
#6DC66B
accent
#E64145
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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