#AC51CF#AC51CF

#AC51CF is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.1% C 0.198 H 315.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AC51CF
RGBrgb(172, 81, 207)
HSLhsl(283, 57%, 56%)
HSVhsv(283, 61%, 81%)
CMYKcmyk(16.9%, 60.9%, 0%, 18.8%)
CIE-LABlab(50.88, 56.72, -49.64)
CIE-LCHlch(50.88, 75.37, 318.81°)
OKLaboklab(60.08% 0.1413 -0.1391)
OKLCHoklch(60.08% 0.198 315.5)
XYZxyz(31.2164, 19.1616, 61.0736)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51CF #74CF51
analogous
#6D51CF #AC51CF #CF51B3
triadic
#AC51CF #CFAC51 #51CFAC
tetradic
#AC51CF #CF6D51 #74CF51 #51B3CF
square
#AC51CF #CF6D51 #74CF51 #51B3CF
split-complementary
#AC51CF #B3CF51 #51CF6D
monochromatic
#682482 #8E31B2 #AC51CF #C381DC #DAB1E9

Accessibility & contrast

On white

4.35
#AC51CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AC51CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51CF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51CF#FFFFFF#000000##000000
##AC51CF1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2874D3
Deuteranopia (green-blind)
#507CCC
Tritanopia (blue-blind)
#AA6789
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ac51cf;
/* rgb */ color: rgb(172, 81, 207);
/* oklch */ color: oklch(60.1% 0.198 315.5);
Tailwind
colors: {
  custom: {
    50: '#c887de',
    500: '#ac51cf',
    950: '#000000',
  },
}
SCSS
$custom: #ac51cf;
$custom-light: #c887de;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51cf",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 283.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60084,
    "c": 0.19827,
    "h": 315.5
  },
  "luminance": 0.19161
}

Semantic roles & 50–950 ramp

primary
#AC51CF
secondary
#B2D8A4
accent
#E04872
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AC51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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