#AB46DC#AB46DC

#AB46DC is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.225 H 312.5°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AB46DC
RGBrgb(171, 70, 220)
HSLhsl(280, 68%, 57%)
HSVhsv(280, 68%, 86%)
CMYKcmyk(22.3%, 68.2%, 0%, 13.7%)
CIE-LABlab(49.75, 64.09, -58.87)
CIE-LCHlch(49.75, 87.03, 317.43°)
OKLaboklab(59.49% 0.152 -0.1661)
OKLCHoklch(59.49% 0.225 312.5)
XYZxyz(31.9007, 18.2064, 69.5300)
Luminance0.1821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46DC #77DC46
analogous
#6046DC #AB46DC #DC46C2
triadic
#AB46DC #DCAB46 #46DCAB
tetradic
#AB46DC #DC6046 #77DC46 #46C2DC
square
#AB46DC #DC6046 #77DC46 #46C2DC
split-complementary
#AB46DC #C2DC46 #46DC60
monochromatic
#681B8D #8D24C0 #AB46DC #C279E6 #DAADEF

Accessibility & contrast

On white

4.52
#AB46DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#AB46DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB46DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46DC#FFFFFF#000000##000000
##AB46DC1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#3878D9
Tritanopia (blue-blind)
#A5658C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab46dc;
/* rgb */ color: rgb(171, 70, 220);
/* oklch */ color: oklch(59.5% 0.225 312.5);
Tailwind
colors: {
  custom: {
    50: '#c881e8',
    500: '#ab46dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab46dc;
$custom-light: #c881e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46dc",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 280.4,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59493,
    "c": 0.22515,
    "h": 312.5
  },
  "luminance": 0.18206
}

Semantic roles & 50–950 ramp

primary
#AB46DC
secondary
#B4DDA0
accent
#EB3D76
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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