#AC42D2#AC42D2

#AC42D2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.221 H 315.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AC42D2
RGBrgb(172, 66, 210)
HSLhsl(284, 62%, 54%)
HSVhsv(284, 69%, 82%)
CMYKcmyk(18.1%, 68.6%, 0%, 17.6%)
CIE-LABlab(48.66, 63.94, -54.90)
CIE-LCHlch(48.66, 84.28, 319.35°)
OKLaboklab(58.55% 0.1582 -0.1544)
OKLCHoklch(58.55% 0.221 315.7)
XYZxyz(30.5925, 17.3214, 62.6921)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42D2 #68D242
analogous
#6442D2 #AC42D2 #D242B0
triadic
#AC42D2 #D2AC42 #42D2AC
tetradic
#AC42D2 #D26442 #68D242 #42B0D2
square
#AC42D2 #D26442 #68D242 #42B0D2
split-complementary
#AC42D2 #B0D242 #42D264
monochromatic
#631E7C #8B29AD #AC42D2 #C273DE #D7A5EA

Accessibility & contrast

On white

4.70
#AC42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AC42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42D2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42D2#FFFFFF#000000##FFFFFF
##AC42D21.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#4076CF
Tritanopia (blue-blind)
#A95F85
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac42d2;
/* rgb */ color: rgb(172, 66, 210);
/* oklch */ color: oklch(58.5% 0.221 315.7);
Tailwind
colors: {
  custom: {
    50: '#c97fe0',
    500: '#ac42d2',
    950: '#000000',
  },
}
SCSS
$custom: #ac42d2;
$custom-light: #c97fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42d2",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 284.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58546,
    "c": 0.22107,
    "h": 315.7
  },
  "luminance": 0.1732
}

Semantic roles & 50–950 ramp

primary
#AC42D2
secondary
#A9D799
accent
#E5436E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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