#AC40CA#AC40CA

#AC40CA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.216 H 318.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AC40CA
RGBrgb(172, 64, 202)
HSLhsl(287, 57%, 52%)
HSVhsv(287, 68%, 79%)
CMYKcmyk(14.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(47.88, 63.19, -51.55)
CIE-LCHlch(47.88, 81.55, 320.79°)
OKLaboklab(57.83% 0.1608 -0.1446)
OKLCHoklch(57.83% 0.216 318)
XYZxyz(29.5058, 16.7030, 57.5354)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40CA #5ECA40
analogous
#6740CA #AC40CA #CA40A3
triadic
#AC40CA #CAAC40 #40CAAC
tetradic
#AC40CA #CA6740 #5ECA40 #40A3CA
square
#AC40CA #CA6740 #5ECA40 #40A3CA
split-complementary
#AC40CA #A3CA40 #40CA67
monochromatic
#5F1F70 #872CA0 #AC40CA #C170D7 #D6A0E5

Accessibility & contrast

On white

4.84
#AC40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AC40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40CA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40CA#FFFFFF#000000##FFFFFF
##AC40CA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#AB5A80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac40ca;
/* rgb */ color: rgb(172, 64, 202);
/* oklch */ color: oklch(57.8% 0.216 318.0);
Tailwind
colors: {
  custom: {
    50: '#c87ddb',
    500: '#ac40ca',
    950: '#000000',
  },
}
SCSS
$custom: #ac40ca;
$custom-light: #c87ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40ca",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 286.957,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57832,
    "c": 0.21626,
    "h": 318
  },
  "luminance": 0.16702
}

Semantic roles & 50–950 ramp

primary
#AC40CA
secondary
#A2D195
accent
#E04869
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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