#AC52EC#AC52EC

#AC52EC is a light, highly saturated violet. Relative luminance 0.209; OKLCH L 62.0% C 0.226 H 308.0°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AC52EC
RGBrgb(172, 82, 236)
HSLhsl(275, 80%, 62%)
HSVhsv(275, 65%, 93%)
CMYKcmyk(27.1%, 65.3%, 0%, 7.5%)
CIE-LABlab(52.80, 62.41, -62.99)
CIE-LCHlch(52.80, 88.67, 314.74°)
OKLaboklab(62.03% 0.139 -0.1782)
OKLCHoklch(62.03% 0.226 308)
XYZxyz(35.1678, 20.8619, 81.5147)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC52EC #92EC52
analogous
#5F52EC #AC52EC #EC52DF
triadic
#AC52EC #ECAC52 #52ECAC
tetradic
#AC52EC #EC5F52 #92EC52 #52DFEC
square
#AC52EC #EC5F52 #92EC52 #52DFEC
split-complementary
#AC52EC #DFEC52 #52EC5F
monochromatic
#6F13B0 #921BE6 #AC52EC #C689F2 #E1C0F8

Accessibility & contrast

On white

4.06
#AC52EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AC52EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC52EC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC52EC#FFFFFF#000000##000000
##AC52EC1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#337FE9
Tritanopia (blue-blind)
#A27398
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ac52ec;
/* rgb */ color: rgb(172, 82, 236);
/* oklch */ color: oklch(62.0% 0.226 308.0);
Tailwind
colors: {
  custom: {
    50: '#c988f3',
    500: '#ac52ec',
    950: '#000000',
  },
}
SCSS
$custom: #ac52ec;
$custom-light: #c988f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ac52ec",
  "rgb": {
    "r": 172,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 275.065,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62034,
    "c": 0.22604,
    "h": 308
  },
  "luminance": 0.20861
}

Semantic roles & 50–950 ramp

primary
#AC52EC
secondary
#C8E9B1
accent
#DD0961
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AC52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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