#AB27B0#AB27B0

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

Color values

HEX#AB27B0
RGBrgb(171, 39, 176)
HSLhsl(298, 64%, 42%)
HSVhsv(298, 78%, 69%)
CMYKcmyk(2.8%, 77.8%, 0%, 31%)
CIE-LABlab(43.13, 67.00, -43.97)
CIE-LCHlch(43.13, 80.14, 326.72°)
OKLaboklab(53.91% 0.1845 -0.1223)
OKLCHoklch(53.91% 0.221 326.5)
XYZxyz(25.3561, 13.2453, 42.2870)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27B0 #2CB027
analogous
#6627B0 #AB27B0 #B02771
triadic
#AB27B0 #B0AB27 #27B0AB
tetradic
#AB27B0 #B06627 #2CB027 #2771B0
square
#AB27B0 #B06627 #2CB027 #2771B0
split-complementary
#AB27B0 #71B027 #27B066
monochromatic
#4A114C #7A1C7E #AB27B0 #CF40D5 #DC72E0

Accessibility & contrast

On white

5.76
#AB27B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AB27B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27B0
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27B0#FFFFFF#000000##FFFFFF
##AB27B01.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#4A6BAD
Tritanopia (blue-blind)
#B0406B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab27b0;
/* rgb */ color: rgb(171, 39, 176);
/* oklch */ color: oklch(53.9% 0.221 326.5);
Tailwind
colors: {
  custom: {
    50: '#c871c8',
    500: '#ab27b0',
    950: '#000000',
  },
}
SCSS
$custom: #ab27b0;
$custom-light: #c871c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27b0",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 297.81,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53911,
    "c": 0.22138,
    "h": 326.5
  },
  "luminance": 0.13244
}

Semantic roles & 50–950 ramp

primary
#AB27B0
secondary
#6FC76C
accent
#E74147
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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