#AC42CE#AC42CE

#AC42CE is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.217 H 316.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AC42CE
RGBrgb(172, 66, 206)
HSLhsl(285, 59%, 53%)
HSVhsv(285, 68%, 81%)
CMYKcmyk(16.5%, 68%, 0%, 19.2%)
CIE-LABlab(48.42, 63.15, -53.00)
CIE-LCHlch(48.42, 82.44, 320.00°)
OKLaboklab(58.29% 0.1585 -0.1488)
OKLCHoklch(58.29% 0.217 316.8)
XYZxyz(30.1004, 17.1245, 60.1004)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42CE #64CE42
analogous
#6642CE #AC42CE #CE42AA
triadic
#AC42CE #CEAC42 #42CEAC
tetradic
#AC42CE #CE6642 #64CE42 #42AACE
square
#AC42CE #CE6642 #64CE42 #42AACE
split-complementary
#AC42CE #AACE42 #42CE66
monochromatic
#611F77 #892BA7 #AC42CE #C173DB #D7A3E7

Accessibility & contrast

On white

4.75
#AC42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC42CE
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42CE#FFFFFF#000000##FFFFFF
##AC42CE1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#4476CB
Tritanopia (blue-blind)
#AA5D83
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac42ce;
/* rgb */ color: rgb(172, 66, 206);
/* oklch */ color: oklch(58.3% 0.217 316.8);
Tailwind
colors: {
  custom: {
    50: '#c87fde',
    500: '#ac42ce',
    950: '#000000',
  },
}
SCSS
$custom: #ac42ce;
$custom-light: #c87fde;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42ce",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 285.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58291,
    "c": 0.21741,
    "h": 316.8
  },
  "luminance": 0.17123
}

Semantic roles & 50–950 ramp

primary
#AC42CE
secondary
#A6D498
accent
#E2466C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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