#AC42AF#AC42AF

#AC42AF is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.190 H 326.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AC42AF
RGBrgb(172, 66, 175)
HSLhsl(298, 45%, 47%)
HSVhsv(298, 62%, 69%)
CMYKcmyk(1.7%, 62.3%, 0%, 31.4%)
CIE-LABlab(46.66, 57.36, -37.76)
CIE-LCHlch(46.66, 68.67, 326.64°)
OKLaboklab(56.46% 0.1585 -0.1044)
OKLCHoklch(56.46% 0.19 326.6)
XYZxyz(26.6989, 15.7639, 42.1856)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42AF #45AF42
analogous
#7642AF #AC42AF #AF427B
triadic
#AC42AF #AFAC42 #42AFAC
tetradic
#AC42AF #AF7642 #45AF42 #427BAF
square
#AC42AF #AF7642 #45AF42 #427BAF
split-complementary
#AC42AF #7BAF42 #42AF76
monochromatic
#552056 #803183 #AC42AF #C468C6 #D595D7

Accessibility & contrast

On white

5.06
#AC42AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC42AF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42AF#FFFFFF#000000##FFFFFF
##AC42AF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#5973AC
Tritanopia (blue-blind)
#B15173
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ac42af;
/* rgb */ color: rgb(172, 66, 175);
/* oklch */ color: oklch(56.5% 0.190 326.6);
Tailwind
colors: {
  custom: {
    50: '#c87ec7',
    500: '#ac42af',
    950: '#000000',
  },
}
SCSS
$custom: #ac42af;
$custom-light: #c87ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42af",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 298.349,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56462,
    "c": 0.1898,
    "h": 326.6
  },
  "luminance": 0.15762
}

Semantic roles & 50–950 ramp

primary
#AC42AF
secondary
#8CC28A
accent
#D55356
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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