#AB47E3#AB47E3

#AB47E3 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 60.1% C 0.231 H 310.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AB47E3
RGBrgb(171, 71, 227)
HSLhsl(278, 74%, 58%)
HSVhsv(278, 69%, 89%)
CMYKcmyk(24.7%, 68.7%, 0%, 11%)
CIE-LABlab(50.35, 65.12, -61.87)
CIE-LCHlch(50.35, 89.83, 316.47°)
OKLaboklab(60.07% 0.1503 -0.1749)
OKLCHoklch(60.07% 0.231 310.7)
XYZxyz(32.9103, 18.7112, 74.5361)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47E3 #7FE347
analogous
#5D47E3 #AB47E3 #E347CD
triadic
#AB47E3 #E3AB47 #47E3AB
tetradic
#AB47E3 #E35D47 #7FE347 #47CDE3
square
#AB47E3 #E35D47 #7FE347 #47CDE3
split-complementary
#AB47E3 #CDE347 #47E35D
monochromatic
#6A1798 #8F1FCE #AB47E3 #C37CEB #DBB1F3

Accessibility & contrast

On white

4.43
#AB47E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AB47E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB47E3
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47E3#FFFFFF#000000##000000
##AB47E31.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E8
Deuteranopia (green-blind)
#2F79E0
Tritanopia (blue-blind)
#A46990
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab47e3;
/* rgb */ color: rgb(171, 71, 227);
/* oklch */ color: oklch(60.1% 0.231 310.7);
Tailwind
colors: {
  custom: {
    50: '#c982ed',
    500: '#ab47e3',
    950: '#000000',
  },
}
SCSS
$custom: #ab47e3;
$custom-light: #c982ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47e3",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 227
  },
  "hsl": {
    "h": 278.462,
    "s": 73.585,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60067,
    "c": 0.23059,
    "h": 310.7
  },
  "luminance": 0.1871
}

Semantic roles & 50–950 ramp

primary
#AB47E3
secondary
#BAE2A4
accent
#F0387A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB47E3

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

Preview Lab → · Contrast checker → · Palette generator →

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