#AB27A7#AB27A7

#AB27A7 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.215 H 329.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB27A7
RGBrgb(171, 39, 167)
HSLhsl(302, 63%, 41%)
HSVhsv(302, 77%, 67%)
CMYKcmyk(0%, 77.2%, 2.3%, 32.9%)
CIE-LABlab(42.61, 65.54, -39.45)
CIE-LCHlch(42.61, 76.50, 328.96°)
OKLaboklab(53.38% 0.1848 -0.1091)
OKLCHoklch(53.38% 0.215 329.4)
XYZxyz(24.4950, 12.9009, 37.7517)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A7 #27AB2B
analogous
#6D27AB #AB27A7 #AB2765
triadic
#AB27A7 #A7AB27 #27A7AB
tetradic
#AB27A7 #AB6D27 #27AB2B #2765AB
square
#AB27A7 #AB6D27 #27AB2B #2765AB
split-complementary
#AB27A7 #65AB27 #27AB6D
monochromatic
#471046 #791C76 #AB27A7 #D33DCE #DE6EDB

Accessibility & contrast

On white

5.87
#AB27A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB27A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27A7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A7#FFFFFF#000000##FFFFFF
##AB27A71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59AA
Deuteranopia (green-blind)
#4F6BA4
Tritanopia (blue-blind)
#B13B66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab27a7;
/* rgb */ color: rgb(171, 39, 167);
/* oklch */ color: oklch(53.4% 0.215 329.4);
Tailwind
colors: {
  custom: {
    50: '#c871c1',
    500: '#ab27a7',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a7;
$custom-light: #c871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a7",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 301.818,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53377,
    "c": 0.21463,
    "h": 329.4
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#AB27A7
secondary
#69C56C
accent
#E64742
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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