#AC42D6#AC42D6

#AC42D6 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.225 H 314.6°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AC42D6
RGBrgb(172, 66, 214)
HSLhsl(283, 64%, 55%)
HSVhsv(283, 69%, 84%)
CMYKcmyk(19.6%, 69.2%, 0%, 16.1%)
CIE-LABlab(48.91, 64.74, -56.79)
CIE-LCHlch(48.91, 86.11, 318.74°)
OKLaboklab(58.8% 0.1579 -0.1599)
OKLCHoklch(58.8% 0.225 314.6)
XYZxyz(31.0971, 17.5232, 65.3495)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42D6 #6CD642
analogous
#6242D6 #AC42D6 #D642B6
triadic
#AC42D6 #D6AC42 #42D6AC
tetradic
#AC42D6 #D66242 #6CD642 #42B6D6
square
#AC42D6 #D66242 #6CD642 #42B6D6
split-complementary
#AC42D6 #B6D642 #42D662
monochromatic
#651C82 #8C27B4 #AC42D6 #C274E1 #D8A7EC

Accessibility & contrast

On white

4.66
#AC42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AC42D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42D6
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42D6#FFFFFF#000000##FFFFFF
##AC42D61.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#3C77D3
Tritanopia (blue-blind)
#A86087
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac42d6;
/* rgb */ color: rgb(172, 66, 214);
/* oklch */ color: oklch(58.8% 0.225 314.6);
Tailwind
colors: {
  custom: {
    50: '#c97fe3',
    500: '#ac42d6',
    950: '#000000',
  },
}
SCSS
$custom: #ac42d6;
$custom-light: #c97fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42d6",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 282.973,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58805,
    "c": 0.22474,
    "h": 314.6
  },
  "luminance": 0.17522
}

Semantic roles & 50–950 ramp

primary
#AC42D6
secondary
#ACD99B
accent
#E74070
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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