#AB27B2#AB27B2

#AB27B2 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.223 H 325.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB27B2
RGBrgb(171, 39, 178)
HSLhsl(297, 64%, 43%)
HSVhsv(297, 78%, 70%)
CMYKcmyk(3.9%, 78.1%, 0%, 30.2%)
CIE-LABlab(43.25, 67.33, -44.96)
CIE-LCHlch(43.25, 80.96, 326.27°)
OKLaboklab(54.03% 0.1844 -0.1252)
OKLCHoklch(54.03% 0.223 325.8)
XYZxyz(25.5555, 13.3251, 43.3368)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27B2 #2EB227
analogous
#6527B2 #AB27B2 #B22774
triadic
#AB27B2 #B2AB27 #27B2AB
tetradic
#AB27B2 #B26527 #2EB227 #2774B2
square
#AB27B2 #B26527 #2EB227 #2774B2
split-complementary
#AB27B2 #74B227 #27B265
monochromatic
#4B114E #7B1C80 #AB27B2 #CE41D5 #DB73E0

Accessibility & contrast

On white

5.73
#AB27B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB27B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27B2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27B2#FFFFFF#000000##FFFFFF
##AB27B21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#486CAF
Tritanopia (blue-blind)
#AF416C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab27b2;
/* rgb */ color: rgb(171, 39, 178);
/* oklch */ color: oklch(54.0% 0.223 325.8);
Tailwind
colors: {
  custom: {
    50: '#c871ca',
    500: '#ab27b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab27b2;
$custom-light: #c871ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27b2",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 296.978,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54034,
    "c": 0.22291,
    "h": 325.8
  },
  "luminance": 0.13323
}

Semantic roles & 50–950 ramp

primary
#AB27B2
secondary
#72C86D
accent
#E74149
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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