#AB47CB#AB47CB

#AB47CB is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.5% C 0.208 H 317.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AB47CB
RGBrgb(171, 71, 203)
HSLhsl(285, 56%, 54%)
HSVhsv(285, 65%, 80%)
CMYKcmyk(15.8%, 65%, 0%, 20.4%)
CIE-LABlab(48.86, 60.22, -50.58)
CIE-LCHlch(48.86, 78.64, 319.97°)
OKLaboklab(58.52% 0.1519 -0.1418)
OKLCHoklch(58.52% 0.208 317)
XYZxyz(29.8257, 17.4774, 58.2907)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47CB #67CB47
analogous
#6947CB #AB47CB #CB47A9
triadic
#AB47CB #CBAB47 #47CBAB
tetradic
#AB47CB #CB6947 #67CB47 #47A9CB
square
#AB47CB #CB6947 #67CB47 #47A9CB
split-complementary
#AB47CB #A9CB47 #47CB69
monochromatic
#622176 #892FA6 #AB47CB #C177D8 #D7A6E6

Accessibility & contrast

On white

4.67
#AB47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AB47CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB47CB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47CB#FFFFFF#000000##FFFFFF
##AB47CB1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126ECF
Deuteranopia (green-blind)
#4A77C8
Tritanopia (blue-blind)
#AA5F83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab47cb;
/* rgb */ color: rgb(171, 71, 203);
/* oklch */ color: oklch(58.5% 0.208 317.0);
Tailwind
colors: {
  custom: {
    50: '#c781db',
    500: '#ab47cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab47cb;
$custom-light: #c781db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47cb",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 285.455,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5852,
    "c": 0.20781,
    "h": 317
  },
  "luminance": 0.17476
}

Semantic roles & 50–950 ramp

primary
#AB47CB
secondary
#A8D39B
accent
#DF496D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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