#AC51D8#AC51D8

#AC51D8 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.6% C 0.207 H 313.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AC51D8
RGBrgb(172, 81, 216)
HSLhsl(280, 63%, 58%)
HSVhsv(280, 63%, 85%)
CMYKcmyk(20.4%, 62.5%, 0%, 15.3%)
CIE-LABlab(51.40, 58.58, -53.94)
CIE-LCHlch(51.40, 79.63, 317.36°)
OKLaboklab(60.63% 0.1412 -0.1517)
OKLCHoklch(60.63% 0.207 313)
XYZxyz(32.3482, 19.6143, 67.0343)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51D8 #7DD851
analogous
#6851D8 #AC51D8 #D851C1
triadic
#AC51D8 #D8AC51 #51D8AC
tetradic
#AC51D8 #D86851 #7DD851 #51C1D8
square
#AC51D8 #D86851 #7DD851 #51C1D8
split-complementary
#AC51D8 #C1D851 #51D868
monochromatic
#6B208F #902BC1 #AC51D8 #C483E3 #DCB5EE

Accessibility & contrast

On white

4.27
#AC51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AC51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51D8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51D8#FFFFFF#000000##000000
##AC51D81.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1776DC
Deuteranopia (green-blind)
#497DD5
Tritanopia (blue-blind)
#A76B8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ac51d8;
/* rgb */ color: rgb(172, 81, 216);
/* oklch */ color: oklch(60.6% 0.207 313.0);
Tailwind
colors: {
  custom: {
    50: '#c887e5',
    500: '#ac51d8',
    950: '#000000',
  },
}
SCSS
$custom: #ac51d8;
$custom-light: #c887e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51d8",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 280.444,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60631,
    "c": 0.20724,
    "h": 313
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#AC51D8
secondary
#B9DDA8
accent
#E64177
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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