#AC51DF#AC51DF

#AC51DF is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.1% C 0.214 H 311.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AC51DF
RGBrgb(172, 81, 223)
HSLhsl(278, 69%, 60%)
HSVhsv(278, 64%, 87%)
CMYKcmyk(22.9%, 63.7%, 0%, 12.5%)
CIE-LABlab(51.82, 60.06, -57.23)
CIE-LCHlch(51.82, 82.97, 316.38°)
OKLaboklab(61.07% 0.141 -0.1613)
OKLCHoklch(61.07% 0.214 311.2)
XYZxyz(33.2725, 19.9840, 71.9023)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51DF #84DF51
analogous
#6551DF #AC51DF #DF51CB
triadic
#AC51DF #DFAC51 #51DFAC
tetradic
#AC51DF #DF6551 #84DF51 #51CBDF
square
#AC51DF #DF6551 #84DF51 #51CBDF
split-complementary
#AC51DF #CBDF51 #51DF65
monochromatic
#6C1C99 #9126CD #AC51DF #C585E9 #DDB8F2

Accessibility & contrast

On white

4.20
#AC51DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AC51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51DF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51DF#FFFFFF#000000##000000
##AC51DF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#427DDC
Tritanopia (blue-blind)
#A66D91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ac51df;
/* rgb */ color: rgb(172, 81, 223);
/* oklch */ color: oklch(61.1% 0.214 311.2);
Tailwind
colors: {
  custom: {
    50: '#c987ea',
    500: '#ac51df',
    950: '#000000',
  },
}
SCSS
$custom: #ac51df;
$custom-light: #c987ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51df",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 278.451,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.21426,
    "h": 311.2
  },
  "luminance": 0.19983
}

Semantic roles & 50–950 ramp

primary
#AC51DF
secondary
#BEE1AA
accent
#EC3C7B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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