#AC57DC#AC57DC

#AC57DC is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.203 H 311.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AC57DC
RGBrgb(172, 87, 220)
HSLhsl(278, 66%, 60%)
HSVhsv(278, 60%, 86%)
CMYKcmyk(21.8%, 60.5%, 0%, 13.7%)
CIE-LABlab(52.68, 56.58, -54.16)
CIE-LCHlch(52.68, 78.32, 316.25°)
OKLaboklab(61.64% 0.134 -0.1523)
OKLCHoklch(61.64% 0.203 311.3)
XYZxyz(33.3373, 20.7551, 69.9462)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC57DC #87DC57
analogous
#6A57DC #AC57DC #DC57C9
triadic
#AC57DC #DCAC57 #57DCAC
tetradic
#AC57DC #DC6A57 #87DC57 #57C9DC
square
#AC57DC #DC6A57 #87DC57 #57C9DC
split-complementary
#AC57DC #C9DC57 #57DC6A
monochromatic
#6D2099 #912ACB #AC57DC #C58AE7 #DEBCF1

Accessibility & contrast

On white

4.08
#AC57DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AC57DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC57DC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC57DC#FFFFFF#000000##000000
##AC57DC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#237AE0
Deuteranopia (green-blind)
#4B7FD9
Tritanopia (blue-blind)
#A67092
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ac57dc;
/* rgb */ color: rgb(172, 87, 220);
/* oklch */ color: oklch(61.6% 0.203 311.3);
Tailwind
colors: {
  custom: {
    50: '#c88be7',
    500: '#ac57dc',
    950: '#000000',
  },
}
SCSS
$custom: #ac57dc;
$custom-light: #c88be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac57dc",
  "rgb": {
    "r": 172,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 278.346,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61636,
    "c": 0.2029,
    "h": 311.3
  },
  "luminance": 0.20754
}

Semantic roles & 50–950 ramp

primary
#AC57DC
secondary
#C0E1AE
accent
#CD185A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AC57DC

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

Preview Lab → · Contrast checker → · Palette generator →

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