#AC52E2#AC52E2

#AC52E2 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.216 H 310.3°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AC52E2
RGBrgb(172, 82, 226)
HSLhsl(278, 71%, 60%)
HSVhsv(278, 64%, 89%)
CMYKcmyk(23.9%, 63.7%, 0%, 11.4%)
CIE-LABlab(52.17, 60.24, -58.36)
CIE-LCHlch(52.17, 83.88, 315.91°)
OKLaboklab(61.38% 0.1397 -0.1647)
OKLCHoklch(61.38% 0.216 310.3)
XYZxyz(33.7554, 20.2969, 74.0763)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC52E2 #88E252
analogous
#6452E2 #AC52E2 #E252D0
triadic
#AC52E2 #E2AC52 #52E2AC
tetradic
#AC52E2 #E26452 #88E252 #52D0E2
square
#AC52E2 #E26452 #88E252 #52D0E2
split-complementary
#AC52E2 #D0E252 #52E264
monochromatic
#6D1B9F #9123D3 #AC52E2 #C586EB #DEBBF4

Accessibility & contrast

On white

4.15
#AC52E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AC52E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC52E2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC52E2#FFFFFF#000000##000000
##AC52E21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#A56F93
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ac52e2;
/* rgb */ color: rgb(172, 82, 226);
/* oklch */ color: oklch(61.4% 0.216 310.3);
Tailwind
colors: {
  custom: {
    50: '#c988ec',
    500: '#ac52e2',
    950: '#000000',
  },
}
SCSS
$custom: #ac52e2;
$custom-light: #c988ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ac52e2",
  "rgb": {
    "r": 172,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 277.5,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61383,
    "c": 0.21594,
    "h": 310.3
  },
  "luminance": 0.20296
}

Semantic roles & 50–950 ramp

primary
#AC52E2
secondary
#C1E3AC
accent
#D3125B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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