#AC52E4#AC52E4

#AC52E4 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.218 H 309.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AC52E4
RGBrgb(172, 82, 228)
HSLhsl(277, 73%, 61%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(24.6%, 64%, 0%, 10.6%)
CIE-LABlab(52.29, 60.67, -59.30)
CIE-LCHlch(52.29, 84.84, 315.66°)
OKLaboklab(61.51% 0.1396 -0.1674)
OKLCHoklch(61.51% 0.218 309.8)
XYZxyz(34.0314, 20.4073, 75.5300)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC52E4 #8AE452
analogous
#6352E4 #AC52E4 #E452D3
triadic
#AC52E4 #E4AC52 #52E4AC
tetradic
#AC52E4 #E46352 #8AE452 #52D3E4
square
#AC52E4 #E46352 #8AE452 #52D3E4
split-complementary
#AC52E4 #D3E452 #52E463
monochromatic
#6E19A2 #9222D7 #AC52E4 #C587EC #DFBCF5

Accessibility & contrast

On white

4.13
#AC52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AC52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC52E4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC52E4#FFFFFF#000000##000000
##AC52E41.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#3D7EE1
Tritanopia (blue-blind)
#A47094
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ac52e4;
/* rgb */ color: rgb(172, 82, 228);
/* oklch */ color: oklch(61.5% 0.218 309.8);
Tailwind
colors: {
  custom: {
    50: '#c988ed',
    500: '#ac52e4',
    950: '#000000',
  },
}
SCSS
$custom: #ac52e4;
$custom-light: #c988ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ac52e4",
  "rgb": {
    "r": 172,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 276.986,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61512,
    "c": 0.21796,
    "h": 309.8
  },
  "luminance": 0.20407
}

Semantic roles & 50–950 ramp

primary
#AC52E4
secondary
#C2E5AD
accent
#D5105C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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