#AC42CF#AC42CF

#AC42CF is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.218 H 316.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AC42CF
RGBrgb(172, 66, 207)
HSLhsl(285, 59%, 54%)
HSVhsv(285, 68%, 81%)
CMYKcmyk(16.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(48.48, 63.35, -53.47)
CIE-LCHlch(48.48, 82.90, 319.83°)
OKLaboklab(58.35% 0.1584 -0.1502)
OKLCHoklch(58.35% 0.218 316.5)
XYZxyz(30.2223, 17.1733, 60.7422)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42CF #65CF42
analogous
#6542CF #AC42CF #CF42AC
triadic
#AC42CF #CFAC42 #42CFAC
tetradic
#AC42CF #CF6542 #65CF42 #42ACCF
square
#AC42CF #CF6542 #65CF42 #42ACCF
split-complementary
#AC42CF #ACCF42 #42CF65
monochromatic
#621F78 #8A2BA9 #AC42CF #C173DB #D7A4E8

Accessibility & contrast

On white

4.74
#AC42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AC42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42CF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42CF#FFFFFF#000000##FFFFFF
##AC42CF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#4376CC
Tritanopia (blue-blind)
#AA5D84
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac42cf;
/* rgb */ color: rgb(172, 66, 207);
/* oklch */ color: oklch(58.4% 0.218 316.5);
Tailwind
colors: {
  custom: {
    50: '#c97fde',
    500: '#ac42cf',
    950: '#000000',
  },
}
SCSS
$custom: #ac42cf;
$custom-light: #c97fde;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42cf",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 285.106,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58354,
    "c": 0.21832,
    "h": 316.5
  },
  "luminance": 0.17172
}

Semantic roles & 50–950 ramp

primary
#AC42CF
secondary
#A7D598
accent
#E3456C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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