#AC40B5#AC40B5

#AC40B5 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.6% C 0.198 H 324.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AC40B5
RGBrgb(172, 64, 181)
HSLhsl(295, 48%, 48%)
HSVhsv(295, 65%, 71%)
CMYKcmyk(5%, 64.6%, 0%, 29%)
CIE-LABlab(46.68, 59.27, -41.26)
CIE-LCHlch(46.68, 72.22, 325.16°)
OKLaboklab(56.58% 0.1611 -0.1146)
OKLCHoklch(56.58% 0.198 324.6)
XYZxyz(27.1865, 15.7753, 45.3201)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40B5 #49B540
analogous
#7240B5 #AC40B5 #B54083
triadic
#AC40B5 #B5AC40 #40B5AC
tetradic
#AC40B5 #B57240 #49B540 #4083B5
square
#AC40B5 #B57240 #49B540 #4083B5
split-complementary
#AC40B5 #83B540 #40B572
monochromatic
#56205B #813088 #AC40B5 #C268CA #D596DA

Accessibility & contrast

On white

5.05
#AC40B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AC40B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40B5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40B5#FFFFFF#000000##FFFFFF
##AC40B51.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B8
Deuteranopia (green-blind)
#5573B2
Tritanopia (blue-blind)
#AF5275
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ac40b5;
/* rgb */ color: rgb(172, 64, 181);
/* oklch */ color: oklch(56.6% 0.198 324.6);
Tailwind
colors: {
  custom: {
    50: '#c87dcc',
    500: '#ac40b5',
    950: '#000000',
  },
}
SCSS
$custom: #ac40b5;
$custom-light: #c87dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40b5",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 295.385,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56576,
    "c": 0.19769,
    "h": 324.6
  },
  "luminance": 0.15774
}

Semantic roles & 50–950 ramp

primary
#AC40B5
secondary
#90C58B
accent
#D7505B
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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