#AC51DD#AC51DD

#AC51DD is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.212 H 311.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AC51DD
RGBrgb(172, 81, 221)
HSLhsl(279, 67%, 59%)
HSVhsv(279, 63%, 87%)
CMYKcmyk(22.2%, 63.3%, 0%, 13.3%)
CIE-LABlab(51.70, 59.64, -56.30)
CIE-LCHlch(51.70, 82.01, 316.65°)
OKLaboklab(60.94% 0.1411 -0.1586)
OKLCHoklch(60.94% 0.212 311.7)
XYZxyz(33.0044, 19.8768, 70.4906)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51DD #82DD51
analogous
#6651DD #AC51DD #DD51C8
triadic
#AC51DD #DDAC51 #51DDAC
tetradic
#AC51DD #DD6651 #82DD51 #51C8DD
square
#AC51DD #DD6651 #82DD51 #51C8DD
split-complementary
#AC51DD #C8DD51 #51DD66
monochromatic
#6C1D96 #9127C9 #AC51DD #C484E7 #DDB7F1

Accessibility & contrast

On white

4.22
#AC51DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AC51DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51DD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51DD#FFFFFF#000000##000000
##AC51DD1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0477E1
Deuteranopia (green-blind)
#447DDA
Tritanopia (blue-blind)
#A66C90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ac51dd;
/* rgb */ color: rgb(172, 81, 221);
/* oklch */ color: oklch(60.9% 0.212 311.7);
Tailwind
colors: {
  custom: {
    50: '#c887e8',
    500: '#ac51dd',
    950: '#000000',
  },
}
SCSS
$custom: #ac51dd;
$custom-light: #c887e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51dd",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 279,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60944,
    "c": 0.21225,
    "h": 311.7
  },
  "luminance": 0.19876
}

Semantic roles & 50–950 ramp

primary
#AC51DD
secondary
#BDE0AA
accent
#EA3E7A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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