#AB47BA#AB47BA

#AB47BA is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.192 H 322.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB47BA
RGBrgb(171, 71, 186)
HSLhsl(292, 45%, 50%)
HSVhsv(292, 62%, 73%)
CMYKcmyk(8.1%, 61.8%, 0%, 27.1%)
CIE-LABlab(47.89, 56.93, -42.26)
CIE-LCHlch(47.89, 70.90, 323.41°)
OKLaboklab(57.51% 0.1518 -0.1176)
OKLCHoklch(57.51% 0.192 322.2)
XYZxyz(27.9098, 16.7110, 48.2003)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47BA #56BA47
analogous
#7147BA #AB47BA #BA478F
triadic
#AB47BA #BAAB47 #47BAAB
tetradic
#AB47BA #BA7147 #56BA47 #478FBA
square
#AB47BA #BA7147 #56BA47 #478FBA
split-complementary
#AB47BA #8FBA47 #47BA71
monochromatic
#5A2562 #83358E #AB47BA #BF74CB #D4A0DB

Accessibility & contrast

On white

4.84
#AB47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AB47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47BA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47BA#FFFFFF#000000##FFFFFF
##AB47BA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABE
Deuteranopia (green-blind)
#5576B7
Tritanopia (blue-blind)
#AD597A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab47ba;
/* rgb */ color: rgb(171, 71, 186);
/* oklch */ color: oklch(57.5% 0.192 322.2);
Tailwind
colors: {
  custom: {
    50: '#c781cf',
    500: '#ab47ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab47ba;
$custom-light: #c781cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47ba",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 292.174,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.19202,
    "h": 322.2
  },
  "luminance": 0.1671
}

Semantic roles & 50–950 ramp

primary
#AB47BA
secondary
#9BC895
accent
#D55364
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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