#AB47BF#AB47BF

#AB47BF is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.8% C 0.197 H 320.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB47BF
RGBrgb(171, 71, 191)
HSLhsl(290, 48%, 51%)
HSVhsv(290, 63%, 75%)
CMYKcmyk(10.5%, 62.8%, 0%, 25.1%)
CIE-LABlab(48.17, 57.88, -44.74)
CIE-LCHlch(48.17, 73.15, 322.30°)
OKLaboklab(57.8% 0.152 -0.1247)
OKLCHoklch(57.8% 0.197 320.6)
XYZxyz(28.4507, 16.9274, 51.0488)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47BF #5BBF47
analogous
#6F47BF #AB47BF #BF4797
triadic
#AB47BF #BFAB47 #47BFAB
tetradic
#AB47BF #BF6F47 #5BBF47 #4797BF
square
#AB47BF #BF6F47 #5BBF47 #4797BF
split-complementary
#AB47BF #97BF47 #47BF6F
monochromatic
#5C2468 #853495 #AB47BF #C074CF #D4A2DF

Accessibility & contrast

On white

4.79
#AB47BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AB47BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47BF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47BF#FFFFFF#000000##FFFFFF
##AB47BF1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC3
Deuteranopia (green-blind)
#5276BC
Tritanopia (blue-blind)
#AC5B7D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab47bf;
/* rgb */ color: rgb(171, 71, 191);
/* oklch */ color: oklch(57.8% 0.197 320.6);
Tailwind
colors: {
  custom: {
    50: '#c781d3',
    500: '#ab47bf',
    950: '#000000',
  },
}
SCSS
$custom: #ab47bf;
$custom-light: #c781d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47bf",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 191
  },
  "hsl": {
    "h": 290,
    "s": 48.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57802,
    "c": 0.19661,
    "h": 320.6
  },
  "luminance": 0.16926
}

Semantic roles & 50–950 ramp

primary
#AB47BF
secondary
#9FCB96
accent
#D85067
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB47BF

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

Preview Lab → · Contrast checker → · Palette generator →

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