#AB47EC#AB47EC

#AB47EC is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.7% C 0.239 H 308.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB47EC
RGBrgb(171, 71, 236)
HSLhsl(276, 81%, 60%)
HSVhsv(276, 70%, 93%)
CMYKcmyk(27.5%, 69.9%, 0%, 7.5%)
CIE-LABlab(50.94, 67.02, -65.98)
CIE-LCHlch(50.94, 94.05, 315.45°)
OKLaboklab(60.68% 0.1492 -0.187)
OKLCHoklch(60.68% 0.239 308.6)
XYZxyz(34.1851, 19.2211, 81.2498)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47EC #88EC47
analogous
#5947EC #AB47EC #EC47DA
triadic
#AB47EC #ECAB47 #47ECAB
tetradic
#AB47EC #EC5947 #88EC47 #47DAEC
square
#AB47EC #EC5947 #88EC47 #47DAEC
split-complementary
#AB47EC #DAEC47 #47EC59
monochromatic
#6C11A7 #9017DF #AB47EC #C47EF2 #DEB6F7

Accessibility & contrast

On white

4.34
#AB47EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AB47EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB47EC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47EC#FFFFFF#000000##000000
##AB47EC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#1D7AE8
Tritanopia (blue-blind)
#A16C95
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab47ec;
/* rgb */ color: rgb(171, 71, 236);
/* oklch */ color: oklch(60.7% 0.239 308.6);
Tailwind
colors: {
  custom: {
    50: '#c982f3',
    500: '#ab47ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab47ec;
$custom-light: #c982f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47ec",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 236
  },
  "hsl": {
    "h": 276.364,
    "s": 81.281,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60682,
    "c": 0.2392,
    "h": 308.6
  },
  "luminance": 0.19221
}

Semantic roles & 50–950 ramp

primary
#AB47EC
secondary
#C1E7A8
accent
#DE085C
background
#FCF8FF
surface
#F9EFFE
border
#D2CAD6
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB47EC

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

Preview Lab → · Contrast checker → · Palette generator →

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