#AB47D2#AB47D2

#AB47D2 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.214 H 315.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AB47D2
RGBrgb(171, 71, 210)
HSLhsl(283, 61%, 55%)
HSVhsv(283, 66%, 82%)
CMYKcmyk(18.6%, 66.2%, 0%, 17.6%)
CIE-LABlab(49.28, 61.62, -53.92)
CIE-LCHlch(49.28, 81.88, 318.81°)
OKLaboklab(58.96% 0.1516 -0.1516)
OKLCHoklch(58.96% 0.214 315)
XYZxyz(30.6788, 17.8186, 62.7836)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47D2 #6ED247
analogous
#6547D2 #AB47D2 #D247B4
triadic
#AB47D2 #D2AB47 #47D2AB
tetradic
#AB47D2 #D26547 #6ED247 #47B4D2
square
#AB47D2 #D26547 #6ED247 #47B4D2
split-complementary
#AB47D2 #B4D247 #47D265
monochromatic
#641F7F #8B2BB1 #AB47D2 #C178DE #D8A9EA

Accessibility & contrast

On white

4.60
#AB47D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AB47D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47D2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47D2#FFFFFF#000000##FFFFFF
##AB47D21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#4378CF
Tritanopia (blue-blind)
#A86287
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab47d2;
/* rgb */ color: rgb(171, 71, 210);
/* oklch */ color: oklch(59.0% 0.214 315.0);
Tailwind
colors: {
  custom: {
    50: '#c881e0',
    500: '#ab47d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab47d2;
$custom-light: #c881e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47d2",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 210
  },
  "hsl": {
    "h": 283.165,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.58957,
    "c": 0.21441,
    "h": 315
  },
  "luminance": 0.17818
}

Semantic roles & 50–950 ramp

primary
#AB47D2
secondary
#AED89D
accent
#E44471
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB47D2

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

Preview Lab → · Contrast checker → · Palette generator →

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