#AB52DC#AB52DC

#AB52DC is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.210 H 311.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB52DC
RGBrgb(171, 82, 220)
HSLhsl(279, 66%, 59%)
HSVhsv(279, 63%, 86%)
CMYKcmyk(22.3%, 62.7%, 0%, 13.7%)
CIE-LABlab(51.68, 58.73, -55.77)
CIE-LCHlch(51.68, 80.99, 316.48°)
OKLaboklab(60.88% 0.1387 -0.1571)
OKLCHoklch(60.88% 0.21 311.4)
XYZxyz(32.7278, 19.8606, 69.8057)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52DC #83DC52
analogous
#6652DC #AB52DC #DC52C8
triadic
#AB52DC #DCAB52 #52DCAB
tetradic
#AB52DC #DC6652 #83DC52 #52C8DC
square
#AB52DC #DC6652 #83DC52 #52C8DC
split-complementary
#AB52DC #C8DC52 #52DC66
monochromatic
#6B1E95 #9029C8 #AB52DC #C485E6 #DCB8F1

Accessibility & contrast

On white

4.22
#AB52DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AB52DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52DC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52DC#FFFFFF#000000##000000
##AB52DC1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E77E0
Deuteranopia (green-blind)
#457DD9
Tritanopia (blue-blind)
#A56D90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab52dc;
/* rgb */ color: rgb(171, 82, 220);
/* oklch */ color: oklch(60.9% 0.210 311.4);
Tailwind
colors: {
  custom: {
    50: '#c888e7',
    500: '#ab52dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab52dc;
$custom-light: #c888e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52dc",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 278.696,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60884,
    "c": 0.20954,
    "h": 311.4
  },
  "luminance": 0.1986
}

Semantic roles & 50–950 ramp

primary
#AB52DC
secondary
#BDE0AA
accent
#E93F7B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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