#AB47DF#AB47DF

#AB47DF is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.8% C 0.227 H 311.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AB47DF
RGBrgb(171, 71, 223)
HSLhsl(279, 70%, 58%)
HSVhsv(279, 68%, 87%)
CMYKcmyk(23.3%, 68.2%, 0%, 12.5%)
CIE-LABlab(50.09, 64.29, -60.02)
CIE-LCHlch(50.09, 87.95, 316.96°)
OKLaboklab(59.8% 0.1507 -0.1695)
OKLCHoklch(59.8% 0.227 311.6)
XYZxyz(32.3646, 18.4929, 71.6623)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB47DF #7BDF47
analogous
#5F47DF #AB47DF #DF47C7
triadic
#AB47DF #DFAB47 #47DFAB
tetradic
#AB47DF #DF5F47 #7BDF47 #47C7DF
square
#AB47DF #DF5F47 #7BDF47 #47C7DF
split-complementary
#AB47DF #C7DF47 #47DF5F
monochromatic
#691992 #8E22C6 #AB47DF #C37BE8 #DBAFF1

Accessibility & contrast

On white

4.47
#AB47DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AB47DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB47DF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB47DF#FFFFFF#000000##000000
##AB47DF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#3579DC
Tritanopia (blue-blind)
#A5678E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab47df;
/* rgb */ color: rgb(171, 71, 223);
/* oklch */ color: oklch(59.8% 0.227 311.6);
Tailwind
colors: {
  custom: {
    50: '#c882ea',
    500: '#ab47df',
    950: '#000000',
  },
}
SCSS
$custom: #ab47df;
$custom-light: #c882ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab47df",
  "rgb": {
    "r": 171,
    "g": 71,
    "b": 223
  },
  "hsl": {
    "h": 279.474,
    "s": 70.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.59799,
    "c": 0.22677,
    "h": 311.6
  },
  "luminance": 0.18492
}

Semantic roles & 50–950 ramp

primary
#AB47DF
secondary
#B7DFA2
accent
#ED3B78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB47DF

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

Preview Lab → · Contrast checker → · Palette generator →

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