#AB47BB#AB47BB

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

Color values

HEX#AB47BB
RGBrgb(171, 71, 187)
HSLhsl(292, 46%, 51%)
HSVhsv(292, 62%, 73%)
CMYKcmyk(8.6%, 62%, 0%, 26.7%)
CIE-LABlab(47.95, 57.12, -42.76)
CIE-LCHlch(47.95, 71.35, 323.18°)
OKLaboklab(57.57% 0.1519 -0.119)
OKLCHoklch(57.57% 0.193 321.9)
XYZxyz(28.0165, 16.7537, 48.7621)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47BB #57BB47
analogous
#7147BB #AB47BB #BB4791
triadic
#AB47BB #BBAB47 #47BBAB
tetradic
#AB47BB #BB7147 #57BB47 #4791BB
square
#AB47BB #BB7147 #57BB47 #4791BB
split-complementary
#AB47BB #91BB47 #47BB71
monochromatic
#5A2563 #833590 #AB47BB #BF74CC #D4A0DC

Accessibility & contrast

On white

4.83
#AB47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AB47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47BB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47BB#FFFFFF#000000##FFFFFF
##AB47BB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABF
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#AD597B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab47bb;
/* rgb */ color: rgb(171, 71, 187);
/* oklch */ color: oklch(57.6% 0.193 321.9);
Tailwind
colors: {
  custom: {
    50: '#c781d0',
    500: '#ab47bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab47bb;
$custom-light: #c781d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47bb",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 291.724,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57571,
    "c": 0.19294,
    "h": 321.9
  },
  "luminance": 0.16752
}

Semantic roles & 50–950 ramp

primary
#AB47BB
secondary
#9CC995
accent
#D65264
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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