#AC40CF#AC40CF

#AC40CF is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.221 H 316.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AC40CF
RGBrgb(172, 64, 207)
HSLhsl(285, 60%, 53%)
HSVhsv(285, 69%, 81%)
CMYKcmyk(16.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(48.19, 64.16, -53.94)
CIE-LCHlch(48.19, 83.82, 319.95°)
OKLaboklab(58.15% 0.1605 -0.1516)
OKLCHoklch(58.15% 0.221 316.6)
XYZxyz(30.1074, 16.9436, 60.7039)
Luminance0.1694 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40CF #63CF40
analogous
#6440CF #AC40CF #CF40AA
triadic
#AC40CF #CFAC40 #40CFAC
tetradic
#AC40CF #CF6440 #63CF40 #40AACF
square
#AC40CF #CF6440 #63CF40 #40AACF
split-complementary
#AC40CF #AACF40 #40CF64
monochromatic
#611E77 #892AA8 #AC40CF #C171DB #D7A2E8

Accessibility & contrast

On white

4.79
#AC40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AC40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40CF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40CF#FFFFFF#000000##FFFFFF
##AC40CF1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#4176CC
Tritanopia (blue-blind)
#AA5C83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac40cf;
/* rgb */ color: rgb(172, 64, 207);
/* oklch */ color: oklch(58.1% 0.221 316.6);
Tailwind
colors: {
  custom: {
    50: '#c97ede',
    500: '#ac40cf',
    950: '#000000',
  },
}
SCSS
$custom: #ac40cf;
$custom-light: #c97ede;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40cf",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 285.315,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58148,
    "c": 0.22076,
    "h": 316.6
  },
  "luminance": 0.16942
}

Semantic roles & 50–950 ramp

primary
#AC40CF
secondary
#A6D497
accent
#E3456C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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