#AB47E4#AB47E4

#AB47E4 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 60.1% C 0.232 H 310.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB47E4
RGBrgb(171, 71, 228)
HSLhsl(278, 74%, 59%)
HSVhsv(278, 69%, 89%)
CMYKcmyk(25%, 68.9%, 0%, 10.6%)
CIE-LABlab(50.41, 65.33, -62.33)
CIE-LCHlch(50.41, 90.30, 316.35°)
OKLaboklab(60.13% 0.1501 -0.1763)
OKLCHoklch(60.13% 0.232 310.4)
XYZxyz(33.0487, 18.7666, 75.2651)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47E4 #80E447
analogous
#5C47E4 #AB47E4 #E447CE
triadic
#AB47E4 #E4AB47 #47E4AB
tetradic
#AB47E4 #E45C47 #80E447 #47CEE4
square
#AB47E4 #E45C47 #80E447 #47CEE4
split-complementary
#AB47E4 #CEE447 #47E45C
monochromatic
#6A179A #8F1ECF #AB47E4 #C37CEC #DCB2F4

Accessibility & contrast

On white

4.42
#AB47E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AB47E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB47E4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47E4#FFFFFF#000000##000000
##AB47E41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#2E7AE1
Tritanopia (blue-blind)
#A36991
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab47e4;
/* rgb */ color: rgb(171, 71, 228);
/* oklch */ color: oklch(60.1% 0.232 310.4);
Tailwind
colors: {
  custom: {
    50: '#c982ed',
    500: '#ab47e4',
    950: '#000000',
  },
}
SCSS
$custom: #ab47e4;
$custom-light: #c982ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47e4",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 278.217,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60134,
    "c": 0.23155,
    "h": 310.4
  },
  "luminance": 0.18766
}

Semantic roles & 50–950 ramp

primary
#AB47E4
secondary
#BBE2A4
accent
#F1377A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB47E4

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

Preview Lab → · Contrast checker → · Palette generator →

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