#AC42D9#AC42D9

#AC42D9 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.228 H 313.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AC42D9
RGBrgb(172, 66, 217)
HSLhsl(282, 67%, 55%)
HSVhsv(282, 70%, 85%)
CMYKcmyk(20.7%, 69.6%, 0%, 14.9%)
CIE-LABlab(49.10, 65.34, -58.19)
CIE-LCHlch(49.10, 87.49, 318.31°)
OKLaboklab(59% 0.1576 -0.1641)
OKLCHoklch(59% 0.228 313.9)
XYZxyz(31.4837, 17.6779, 67.3859)
Luminance0.1768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42D9 #6FD942
analogous
#6042D9 #AC42D9 #D942BB
triadic
#AC42D9 #D9AC42 #42D9AC
tetradic
#AC42D9 #D96042 #6FD942 #42BBD9
square
#AC42D9 #D96042 #6FD942 #42BBD9
split-complementary
#AC42D9 #BBD942 #42D960
monochromatic
#661B86 #8D25B9 #AC42D9 #C275E3 #D9A8ED

Accessibility & contrast

On white

4.63
#AC42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AC42D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42D9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42D9#FFFFFF#000000##FFFFFF
##AC42D91.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#3977D6
Tritanopia (blue-blind)
#A86189
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ac42d9;
/* rgb */ color: rgb(172, 66, 217);
/* oklch */ color: oklch(59.0% 0.228 313.9);
Tailwind
colors: {
  custom: {
    50: '#c97fe5',
    500: '#ac42d9',
    950: '#000000',
  },
}
SCSS
$custom: #ac42d9;
$custom-light: #c97fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42d9",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 282.119,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59001,
    "c": 0.22751,
    "h": 313.9
  },
  "luminance": 0.17677
}

Semantic roles & 50–950 ramp

primary
#AC42D9
secondary
#AFDB9C
accent
#E93E71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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