#AC40B3#AC40B3

#AC40B3 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.5% C 0.196 H 325.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AC40B3
RGBrgb(172, 64, 179)
HSLhsl(296, 47%, 48%)
HSVhsv(296, 64%, 70%)
CMYKcmyk(3.9%, 64.2%, 0%, 29.8%)
CIE-LABlab(46.57, 58.91, -40.26)
CIE-LCHlch(46.57, 71.36, 325.65°)
OKLaboklab(56.46% 0.1611 -0.1116)
OKLCHoklch(56.46% 0.196 325.3)
XYZxyz(26.9827, 15.6938, 44.2471)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40B3 #47B340
analogous
#7340B3 #AC40B3 #B34080
triadic
#AC40B3 #B3AC40 #40B3AC
tetradic
#AC40B3 #B37340 #47B340 #4080B3
square
#AC40B3 #B37340 #47B340 #4080B3
split-complementary
#AC40B3 #80B340 #40B373
monochromatic
#552059 #813086 #AC40B3 #C367C9 #D594D9

Accessibility & contrast

On white

5.07
#AC40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AC40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40B3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40B3#FFFFFF#000000##FFFFFF
##AC40B31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B6
Deuteranopia (green-blind)
#5673B0
Tritanopia (blue-blind)
#B05174
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ac40b3;
/* rgb */ color: rgb(172, 64, 179);
/* oklch */ color: oklch(56.5% 0.196 325.3);
Tailwind
colors: {
  custom: {
    50: '#c87dca',
    500: '#ac40b3',
    950: '#000000',
  },
}
SCSS
$custom: #ac40b3;
$custom-light: #c87dca;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40b3",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 296.348,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56463,
    "c": 0.19597,
    "h": 325.3
  },
  "luminance": 0.15692
}

Semantic roles & 50–950 ramp

primary
#AC40B3
secondary
#8EC48A
accent
#D75159
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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