#AB47A2#AB47A2

#AB47A2 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.2% C 0.171 H 331.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AB47A2
RGBrgb(171, 71, 162)
HSLhsl(305, 41%, 47%)
HSVhsv(305, 58%, 67%)
CMYKcmyk(0%, 58.5%, 5.3%, 32.9%)
CIE-LABlab(46.68, 52.61, -30.07)
CIE-LCHlch(46.68, 60.60, 330.25°)
OKLaboklab(56.23% 0.1498 -0.0823)
OKLCHoklch(56.23% 0.171 331.2)
XYZxyz(25.5693, 15.7748, 35.8735)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47A2 #47AB50
analogous
#8247AB #AB47A2 #AB4770
triadic
#AB47A2 #A2AB47 #47A2AB
tetradic
#AB47A2 #AB8247 #47AB50 #4770AB
square
#AB47A2 #AB8247 #47AB50 #4770AB
split-complementary
#AB47A2 #70AB47 #47AB82
monochromatic
#552350 #803579 #AB47A2 #C26DBB #D498CF

Accessibility & contrast

On white

5.05
#AB47A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AB47A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47A2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47A2#FFFFFF#000000##FFFFFF
##AB47A21.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#B1506E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab47a2;
/* rgb */ color: rgb(171, 71, 162);
/* oklch */ color: oklch(56.2% 0.171 331.2);
Tailwind
colors: {
  custom: {
    50: '#c780be',
    500: '#ab47a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab47a2;
$custom-light: #c780be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47a2",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 305.4,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56233,
    "c": 0.17089,
    "h": 331.2
  },
  "luminance": 0.15773
}

Semantic roles & 50–950 ramp

primary
#AB47A2
secondary
#8DC092
accent
#D16257
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB47A2

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

Preview Lab → · Contrast checker → · Palette generator →

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