#AB47DC#AB47DC

#AB47DC is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.224 H 312.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AB47DC
RGBrgb(171, 71, 220)
HSLhsl(280, 68%, 57%)
HSVhsv(280, 68%, 86%)
CMYKcmyk(22.3%, 67.7%, 0%, 13.7%)
CIE-LABlab(49.90, 63.67, -58.63)
CIE-LCHlch(49.90, 86.55, 317.36°)
OKLaboklab(59.6% 0.1509 -0.1654)
OKLCHoklch(59.6% 0.224 312.4)
XYZxyz(31.9638, 18.3326, 69.5510)
Luminance0.1833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47DC #78DC47
analogous
#6047DC #AB47DC #DC47C3
triadic
#AB47DC #DCAB47 #47DCAB
tetradic
#AB47DC #DC6047 #78DC47 #47C3DC
square
#AB47DC #DC6047 #78DC47 #47C3DC
split-complementary
#AB47DC #C3DC47 #47DC60
monochromatic
#681B8E #8E25C1 #AB47DC #C27AE6 #DAAEF0

Accessibility & contrast

On white

4.50
#AB47DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#AB47DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB47DC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47DC#FFFFFF#000000##000000
##AB47DC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#3979D9
Tritanopia (blue-blind)
#A5668C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab47dc;
/* rgb */ color: rgb(171, 71, 220);
/* oklch */ color: oklch(59.6% 0.224 312.4);
Tailwind
colors: {
  custom: {
    50: '#c882e8',
    500: '#ab47dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab47dc;
$custom-light: #c882e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47dc",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 280.268,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59601,
    "c": 0.22391,
    "h": 312.4
  },
  "luminance": 0.18332
}

Semantic roles & 50–950 ramp

primary
#AB47DC
secondary
#B5DEA1
accent
#EB3D76
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB47DC

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

Preview Lab → · Contrast checker → · Palette generator →

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