#AC42CD#AC42CD

#AC42CD is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.2% C 0.216 H 317.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AC42CD
RGBrgb(172, 66, 205)
HSLhsl(286, 58%, 53%)
HSVhsv(286, 68%, 80%)
CMYKcmyk(16.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(48.36, 62.96, -52.52)
CIE-LCHlch(48.36, 81.99, 320.17°)
OKLaboklab(58.23% 0.1585 -0.1474)
OKLCHoklch(58.23% 0.217 317.1)
XYZxyz(29.9793, 17.0761, 59.4626)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42CD #63CD42
analogous
#6642CD #AC42CD #CD42A9
triadic
#AC42CD #CDAC42 #42CDAC
tetradic
#AC42CD #CD6642 #63CD42 #42A9CD
square
#AC42CD #CD6642 #63CD42 #42A9CD
split-complementary
#AC42CD #A9CD42 #42CD66
monochromatic
#611F76 #892CA6 #AC42CD #C172DA #D7A3E7

Accessibility & contrast

On white

4.76
#AC42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AC42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42CD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42CD#FFFFFF#000000##FFFFFF
##AC42CD1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#4576CA
Tritanopia (blue-blind)
#AB5D83
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac42cd;
/* rgb */ color: rgb(172, 66, 205);
/* oklch */ color: oklch(58.2% 0.216 317.1);
Tailwind
colors: {
  custom: {
    50: '#c87fdd',
    500: '#ac42cd',
    950: '#000000',
  },
}
SCSS
$custom: #ac42cd;
$custom-light: #c87fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42cd",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 285.755,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58228,
    "c": 0.2165,
    "h": 317.1
  },
  "luminance": 0.17075
}

Semantic roles & 50–950 ramp

primary
#AC42CD
secondary
#A6D397
accent
#E1466B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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