#AB47CC#AB47CC

#AB47CC is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.209 H 316.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB47CC
RGBrgb(171, 71, 204)
HSLhsl(285, 57%, 54%)
HSVhsv(285, 65%, 80%)
CMYKcmyk(16.2%, 65.2%, 0%, 20%)
CIE-LABlab(48.92, 60.42, -51.06)
CIE-LCHlch(48.92, 79.10, 319.80°)
OKLaboklab(58.58% 0.1519 -0.1432)
OKLCHoklch(58.58% 0.209 316.7)
XYZxyz(29.9453, 17.5252, 58.9203)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47CC #68CC47
analogous
#6947CC #AB47CC #CC47AB
triadic
#AB47CC #CCAB47 #47CCAB
tetradic
#AB47CC #CC6947 #68CC47 #47ABCC
square
#AB47CC #CC6947 #68CC47 #47ABCC
split-complementary
#AB47CC #ABCC47 #47CC69
monochromatic
#622177 #892EA7 #AB47CC #C177D9 #D7A7E7

Accessibility & contrast

On white

4.66
#AB47CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AB47CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47CC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47CC#FFFFFF#000000##FFFFFF
##AB47CC1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6ED0
Deuteranopia (green-blind)
#4977C9
Tritanopia (blue-blind)
#A96084
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab47cc;
/* rgb */ color: rgb(171, 71, 204);
/* oklch */ color: oklch(58.6% 0.209 316.7);
Tailwind
colors: {
  custom: {
    50: '#c781dc',
    500: '#ab47cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab47cc;
$custom-light: #c781dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47cc",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 285.113,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58582,
    "c": 0.20875,
    "h": 316.7
  },
  "luminance": 0.17524
}

Semantic roles & 50–950 ramp

primary
#AB47CC
secondary
#A9D49B
accent
#E0486E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB47CC

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

Preview Lab → · Contrast checker → · Palette generator →

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