#AB27AF#AB27AF

#AB27AF is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.221 H 326.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AB27AF
RGBrgb(171, 39, 175)
HSLhsl(298, 64%, 42%)
HSVhsv(298, 78%, 69%)
CMYKcmyk(2.3%, 77.7%, 0%, 31.4%)
CIE-LABlab(43.07, 66.84, -43.47)
CIE-LCHlch(43.07, 79.73, 326.96°)
OKLaboklab(53.85% 0.1846 -0.1208)
OKLCHoklch(53.85% 0.221 326.8)
XYZxyz(25.2575, 13.2059, 41.7678)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27AF #2BAF27
analogous
#6727AF #AB27AF #AF276F
triadic
#AB27AF #AFAB27 #27AFAB
tetradic
#AB27AF #AF6727 #2BAF27 #276FAF
square
#AB27AF #AF6727 #2BAF27 #276FAF
split-complementary
#AB27AF #6FAF27 #27AF67
monochromatic
#49114B #7A1C7D #AB27AF #D03FD4 #DC71DF

Accessibility & contrast

On white

5.77
#AB27AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AB27AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27AF
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27AF#FFFFFF#000000##FFFFFF
##AB27AF1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#4A6BAC
Tritanopia (blue-blind)
#B03F6B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab27af;
/* rgb */ color: rgb(171, 39, 175);
/* oklch */ color: oklch(53.9% 0.221 326.8);
Tailwind
colors: {
  custom: {
    50: '#c871c7',
    500: '#ab27af',
    950: '#000000',
  },
}
SCSS
$custom: #ab27af;
$custom-light: #c871c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27af",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 298.235,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53851,
    "c": 0.22063,
    "h": 326.8
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#AB27AF
secondary
#6EC66B
accent
#E74146
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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