#AC52DC#AC52DC

#AC52DC is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.0% C 0.210 H 311.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AC52DC
RGBrgb(172, 82, 220)
HSLhsl(279, 66%, 59%)
HSVhsv(279, 63%, 86%)
CMYKcmyk(21.8%, 62.7%, 0%, 13.7%)
CIE-LABlab(51.81, 58.96, -55.55)
CIE-LCHlch(51.81, 81.01, 316.70°)
OKLaboklab(61% 0.14 -0.1564)
OKLCHoklch(61% 0.21 311.8)
XYZxyz(32.9465, 19.9734, 69.8159)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC52DC #82DC52
analogous
#6752DC #AC52DC #DC52C7
triadic
#AC52DC #DCAC52 #52DCAC
tetradic
#AC52DC #DC6752 #82DC52 #52C7DC
square
#AC52DC #DC6752 #82DC52 #52C7DC
split-complementary
#AC52DC #C7DC52 #52DC67
monochromatic
#6C1E95 #9129C8 #AC52DC #C485E6 #DDB8F1

Accessibility & contrast

On white

4.20
#AC52DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AC52DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC52DC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC52DC#FFFFFF#000000##000000
##AC52DC1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1077E0
Deuteranopia (green-blind)
#467DD9
Tritanopia (blue-blind)
#A66D90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ac52dc;
/* rgb */ color: rgb(172, 82, 220);
/* oklch */ color: oklch(61.0% 0.210 311.8);
Tailwind
colors: {
  custom: {
    50: '#c888e7',
    500: '#ac52dc',
    950: '#000000',
  },
}
SCSS
$custom: #ac52dc;
$custom-light: #c888e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac52dc",
  "rgb": {
    "r": 172,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 279.13,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61003,
    "c": 0.20988,
    "h": 311.8
  },
  "luminance": 0.19973
}

Semantic roles & 50–950 ramp

primary
#AC52DC
secondary
#BDE0AA
accent
#E93F7A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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