#AC40CB#AC40CB

#AC40CB is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.217 H 317.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AC40CB
RGBrgb(172, 64, 203)
HSLhsl(287, 57%, 52%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(15.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(47.94, 63.39, -52.03)
CIE-LCHlch(47.94, 82.00, 320.62°)
OKLaboklab(57.89% 0.1608 -0.146)
OKLCHoklch(57.89% 0.217 317.8)
XYZxyz(29.6246, 16.7505, 58.1610)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40CB #5FCB40
analogous
#6740CB #AC40CB #CB40A4
triadic
#AC40CB #CBAC40 #40CBAC
tetradic
#AC40CB #CB6740 #5FCB40 #40A4CB
square
#AC40CB #CB6740 #5FCB40 #40A4CB
split-complementary
#AC40CB #A4CB40 #40CB67
monochromatic
#5F1F72 #882CA2 #AC40CB #C170D8 #D6A0E5

Accessibility & contrast

On white

4.83
#AC40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AC40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40CB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40CB#FFFFFF#000000##FFFFFF
##AC40CB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#4575C8
Tritanopia (blue-blind)
#AB5B81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac40cb;
/* rgb */ color: rgb(172, 64, 203);
/* oklch */ color: oklch(57.9% 0.217 317.8);
Tailwind
colors: {
  custom: {
    50: '#c87ddb',
    500: '#ac40cb',
    950: '#000000',
  },
}
SCSS
$custom: #ac40cb;
$custom-light: #c87ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40cb",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 286.619,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57894,
    "c": 0.21716,
    "h": 317.8
  },
  "luminance": 0.16749
}

Semantic roles & 50–950 ramp

primary
#AC40CB
secondary
#A3D295
accent
#E04769
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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