#AB47DB#AB47DB

#AB47DB is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.223 H 312.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB47DB
RGBrgb(171, 71, 219)
HSLhsl(281, 67%, 57%)
HSVhsv(281, 68%, 86%)
CMYKcmyk(21.9%, 67.6%, 0%, 14.1%)
CIE-LABlab(49.83, 63.46, -58.16)
CIE-LCHlch(49.83, 86.08, 317.49°)
OKLaboklab(59.54% 0.151 -0.164)
OKLCHoklch(59.54% 0.223 312.6)
XYZxyz(31.8317, 18.2798, 68.8556)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47DB #77DB47
analogous
#6147DB #AB47DB #DB47C1
triadic
#AB47DB #DBAB47 #47DBAB
tetradic
#AB47DB #DB6147 #77DB47 #47C1DB
square
#AB47DB #DB6147 #77DB47 #47C1DB
split-complementary
#AB47DB #C1DB47 #47DB61
monochromatic
#681B8C #8D25BF #AB47DB #C27AE5 #DAADEF

Accessibility & contrast

On white

4.51
#AB47DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AB47DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB47DB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47DB#FFFFFF#000000##000000
##AB47DB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#3A79D8
Tritanopia (blue-blind)
#A6658C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab47db;
/* rgb */ color: rgb(171, 71, 219);
/* oklch */ color: oklch(59.5% 0.223 312.6);
Tailwind
colors: {
  custom: {
    50: '#c882e7',
    500: '#ab47db',
    950: '#000000',
  },
}
SCSS
$custom: #ab47db;
$custom-light: #c882e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47db",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 219
  },
  "hsl": {
    "h": 280.541,
    "s": 67.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59536,
    "c": 0.22296,
    "h": 312.6
  },
  "luminance": 0.18279
}

Semantic roles & 50–950 ramp

primary
#AB47DB
secondary
#B4DDA1
accent
#EA3E76
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB47DB

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

Preview Lab → · Contrast checker → · Palette generator →

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