#AB47CD#AB47CD

#AB47CD is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.6% C 0.210 H 316.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB47CD
RGBrgb(171, 71, 205)
HSLhsl(285, 57%, 54%)
HSVhsv(285, 65%, 80%)
CMYKcmyk(16.6%, 65.4%, 0%, 19.6%)
CIE-LABlab(48.97, 60.62, -51.54)
CIE-LCHlch(48.97, 79.56, 319.63°)
OKLaboklab(58.64% 0.1518 -0.1446)
OKLCHoklch(58.64% 0.21 316.4)
XYZxyz(30.0656, 17.5733, 59.5540)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47CD #69CD47
analogous
#6847CD #AB47CD #CD47AC
triadic
#AB47CD #CDAB47 #47CDAB
tetradic
#AB47CD #CD6847 #69CD47 #47ACCD
square
#AB47CD #CD6847 #69CD47 #47ACCD
split-complementary
#AB47CD #ACCD47 #47CD68
monochromatic
#622179 #8A2EA9 #AB47CD #C177DA #D7A7E7

Accessibility & contrast

On white

4.65
#AB47CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AB47CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47CD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47CD#FFFFFF#000000##FFFFFF
##AB47CD1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6ED1
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#A96084
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab47cd;
/* rgb */ color: rgb(171, 71, 205);
/* oklch */ color: oklch(58.6% 0.210 316.4);
Tailwind
colors: {
  custom: {
    50: '#c881dd',
    500: '#ab47cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab47cd;
$custom-light: #c881dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47cd",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 284.776,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58644,
    "c": 0.20968,
    "h": 316.4
  },
  "luminance": 0.17572
}

Semantic roles & 50–950 ramp

primary
#AB47CD
secondary
#AAD49B
accent
#E1476E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB47CD

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

Preview Lab → · Contrast checker → · Palette generator →

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