#AB47BD#AB47BD

#AB47BD is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.7% C 0.195 H 321.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB47BD
RGBrgb(171, 71, 189)
HSLhsl(291, 47%, 51%)
HSVhsv(291, 62%, 74%)
CMYKcmyk(9.5%, 62.4%, 0%, 25.9%)
CIE-LABlab(48.06, 57.50, -43.75)
CIE-LCHlch(48.06, 72.25, 322.73°)
OKLaboklab(57.69% 0.1519 -0.1219)
OKLCHoklch(57.69% 0.195 321.3)
XYZxyz(28.2321, 16.8399, 49.8976)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47BD #59BD47
analogous
#7047BD #AB47BD #BD4794
triadic
#AB47BD #BDAB47 #47BDAB
tetradic
#AB47BD #BD7047 #59BD47 #4794BD
square
#AB47BD #BD7047 #59BD47 #4794BD
split-complementary
#AB47BD #94BD47 #47BD70
monochromatic
#5B2465 #843492 #AB47BD #C074CD #D4A1DD

Accessibility & contrast

On white

4.81
#AB47BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AB47BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47BD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47BD#FFFFFF#000000##FFFFFF
##AB47BD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6BC1
Deuteranopia (green-blind)
#5476BA
Tritanopia (blue-blind)
#AD5A7C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab47bd;
/* rgb */ color: rgb(171, 71, 189);
/* oklch */ color: oklch(57.7% 0.195 321.3);
Tailwind
colors: {
  custom: {
    50: '#c781d1',
    500: '#ab47bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab47bd;
$custom-light: #c781d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47bd",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 290.847,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.19478,
    "h": 321.3
  },
  "luminance": 0.16839
}

Semantic roles & 50–950 ramp

primary
#AB47BD
secondary
#9ECA96
accent
#D75165
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB47BD

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

Preview Lab → · Contrast checker → · Palette generator →

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