#AC51E4#AC51E4

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

Color values

HEX#AC51E4
RGBrgb(172, 81, 228)
HSLhsl(277, 73%, 61%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(24.6%, 64.5%, 0%, 10.6%)
CIE-LABlab(52.13, 61.13, -59.56)
CIE-LCHlch(52.13, 85.35, 315.74°)
OKLaboklab(61.39% 0.1407 -0.1682)
OKLCHoklch(61.39% 0.219 309.9)
XYZxyz(33.9566, 20.2576, 75.5051)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51E4 #89E451
analogous
#6251E4 #AC51E4 #E451D2
triadic
#AC51E4 #E4AC51 #51E4AC
tetradic
#AC51E4 #E46251 #89E451 #51D2E4
square
#AC51E4 #E46251 #89E451 #51D2E4
split-complementary
#AC51E4 #D2E451 #51E462
monochromatic
#6E19A2 #9121D7 #AC51E4 #C586EC #DFBBF4

Accessibility & contrast

On white

4.16
#AC51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AC51E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51E4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51E4#FFFFFF#000000##000000
##AC51E41.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#3C7EE1
Tritanopia (blue-blind)
#A46F94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ac51e4;
/* rgb */ color: rgb(172, 81, 228);
/* oklch */ color: oklch(61.4% 0.219 309.9);
Tailwind
colors: {
  custom: {
    50: '#c987ed',
    500: '#ac51e4',
    950: '#000000',
  },
}
SCSS
$custom: #ac51e4;
$custom-light: #c987ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51e4",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 277.143,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61391,
    "c": 0.21928,
    "h": 309.9
  },
  "luminance": 0.20257
}

Semantic roles & 50–950 ramp

primary
#AC51E4
secondary
#C2E4AC
accent
#D5105B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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