#AB47C7#AB47C7

#AB47C7 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.3% C 0.204 H 318.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB47C7
RGBrgb(171, 71, 199)
HSLhsl(287, 53%, 53%)
HSVhsv(287, 64%, 78%)
CMYKcmyk(14.1%, 64.3%, 0%, 22%)
CIE-LABlab(48.62, 59.43, -48.64)
CIE-LCHlch(48.62, 76.80, 320.70°)
OKLaboklab(58.28% 0.152 -0.1361)
OKLCHoklch(58.28% 0.204 318.1)
XYZxyz(29.3552, 17.2892, 55.8126)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47C7 #63C747
analogous
#6B47C7 #AB47C7 #C747A3
triadic
#AB47C7 #C7AB47 #47C7AB
tetradic
#AB47C7 #C76B47 #63C747 #47A3C7
square
#AB47C7 #C76B47 #63C747 #47A3C7
split-complementary
#AB47C7 #A3C747 #47C76B
monochromatic
#602271 #8831A0 #AB47C7 #C076D5 #D6A5E4

Accessibility & contrast

On white

4.71
#AB47C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AB47C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47C7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47C7#FFFFFF#000000##FFFFFF
##AB47C71.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6DCB
Deuteranopia (green-blind)
#4D77C4
Tritanopia (blue-blind)
#AA5E81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab47c7;
/* rgb */ color: rgb(171, 71, 199);
/* oklch */ color: oklch(58.3% 0.204 318.1);
Tailwind
colors: {
  custom: {
    50: '#c781d8',
    500: '#ab47c7',
    950: '#000000',
  },
}
SCSS
$custom: #ab47c7;
$custom-light: #c781d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47c7",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 199
  },
  "hsl": {
    "h": 286.875,
    "s": 53.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58277,
    "c": 0.20405,
    "h": 318.1
  },
  "luminance": 0.17288
}

Semantic roles & 50–950 ramp

primary
#AB47C7
secondary
#A5D199
accent
#DD4B6B
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB47C7

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

Preview Lab → · Contrast checker → · Palette generator →

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