#AB47BC#AB47BC

#AB47BC is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.6% C 0.194 H 321.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB47BC
RGBrgb(171, 71, 188)
HSLhsl(291, 47%, 51%)
HSVhsv(291, 62%, 74%)
CMYKcmyk(9%, 62.2%, 0%, 26.3%)
CIE-LABlab(48.00, 57.31, -43.26)
CIE-LCHlch(48.00, 71.80, 322.95°)
OKLaboklab(57.63% 0.1519 -0.1204)
OKLCHoklch(57.63% 0.194 321.6)
XYZxyz(28.1239, 16.7967, 49.3279)
Luminance0.1679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47BC #58BC47
analogous
#7047BC #AB47BC #BC4792
triadic
#AB47BC #BCAB47 #47BCAB
tetradic
#AB47BC #BC7047 #58BC47 #4792BC
square
#AB47BC #BC7047 #58BC47 #4792BC
split-complementary
#AB47BC #92BC47 #47BC70
monochromatic
#5B2464 #843591 #AB47BC #BF74CC #D4A1DD

Accessibility & contrast

On white

4.82
#AB47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AB47BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47BC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47BC#FFFFFF#000000##FFFFFF
##AB47BC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BC0
Deuteranopia (green-blind)
#5476B9
Tritanopia (blue-blind)
#AD597B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab47bc;
/* rgb */ color: rgb(171, 71, 188);
/* oklch */ color: oklch(57.6% 0.194 321.6);
Tailwind
colors: {
  custom: {
    50: '#c781d1',
    500: '#ab47bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab47bc;
$custom-light: #c781d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47bc",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 291.282,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57629,
    "c": 0.19385,
    "h": 321.6
  },
  "luminance": 0.16795
}

Semantic roles & 50–950 ramp

primary
#AB47BC
secondary
#9DC995
accent
#D65265
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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