#AC42BA#AC42BA

#AC42BA is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.1% C 0.199 H 322.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AC42BA
RGBrgb(172, 66, 186)
HSLhsl(293, 48%, 49%)
HSVhsv(293, 65%, 73%)
CMYKcmyk(7.5%, 64.5%, 0%, 27.1%)
CIE-LABlab(47.25, 59.35, -43.27)
CIE-LCHlch(47.25, 73.45, 323.90°)
OKLaboklab(57.08% 0.1589 -0.1204)
OKLCHoklch(57.08% 0.199 322.8)
XYZxyz(27.8235, 16.2138, 48.1089)
Luminance0.1621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42BA #50BA42
analogous
#7042BA #AC42BA #BA428C
triadic
#AC42BA #BAAC42 #42BAAC
tetradic
#AC42BA #BA7042 #50BA42 #428CBA
square
#AC42BA #BA7042 #50BA42 #428CBA
split-complementary
#AC42BA #8CBA42 #42BA70
monochromatic
#582260 #82328D #AC42BA #C16ECB #D49BDB

Accessibility & contrast

On white

4.95
#AC42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AC42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42BA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42BA#FFFFFF#000000##FFFFFF
##AC42BA1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2668BE
Deuteranopia (green-blind)
#5374B7
Tritanopia (blue-blind)
#AF5578
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ac42ba;
/* rgb */ color: rgb(172, 66, 186);
/* oklch */ color: oklch(57.1% 0.199 322.8);
Tailwind
colors: {
  custom: {
    50: '#c87ecf',
    500: '#ac42ba',
    950: '#000000',
  },
}
SCSS
$custom: #ac42ba;
$custom-light: #c87ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42ba",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 293,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.19939,
    "h": 322.8
  },
  "luminance": 0.16212
}

Semantic roles & 50–950 ramp

primary
#AC42BA
secondary
#97C890
accent
#D75160
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AC42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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