#AB27A5#AB27A5

#AB27A5 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.213 H 330.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AB27A5
RGBrgb(171, 39, 165)
HSLhsl(303, 63%, 41%)
HSVhsv(303, 77%, 67%)
CMYKcmyk(0%, 77.2%, 3.5%, 32.9%)
CIE-LABlab(42.50, 65.23, -38.43)
CIE-LCHlch(42.50, 75.71, 329.49°)
OKLaboklab(53.26% 0.1848 -0.1062)
OKLCHoklch(53.26% 0.213 330.1)
XYZxyz(24.3115, 12.8275, 36.7855)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A5 #27AB2D
analogous
#6F27AB #AB27A5 #AB2763
triadic
#AB27A5 #A5AB27 #27A5AB
tetradic
#AB27A5 #AB6F27 #27AB2D #2763AB
square
#AB27A5 #AB6F27 #27AB2D #2763AB
split-complementary
#AB27A5 #63AB27 #27AB6F
monochromatic
#471045 #791C75 #AB27A5 #D33DCC #DE6ED9

Accessibility & contrast

On white

5.89
#AB27A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB27A5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A5#FFFFFF#000000##FFFFFF
##AB27A51.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1359A8
Deuteranopia (green-blind)
#516AA2
Tritanopia (blue-blind)
#B23A65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab27a5;
/* rgb */ color: rgb(171, 39, 165);
/* oklch */ color: oklch(53.3% 0.213 330.1);
Tailwind
colors: {
  custom: {
    50: '#c871c0',
    500: '#ab27a5',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a5;
$custom-light: #c871c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a5",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 302.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53262,
    "c": 0.21316,
    "h": 330.1
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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