#AC42D5#AC42D5

#AC42D5 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.224 H 314.9°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AC42D5
RGBrgb(172, 66, 213)
HSLhsl(283, 64%, 55%)
HSVhsv(283, 69%, 84%)
CMYKcmyk(19.2%, 69%, 0%, 16.5%)
CIE-LABlab(48.85, 64.54, -56.31)
CIE-LCHlch(48.85, 85.65, 318.89°)
OKLaboklab(58.74% 0.158 -0.1585)
OKLCHoklch(58.74% 0.224 314.9)
XYZxyz(30.9698, 17.4723, 64.6790)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42D5 #6BD542
analogous
#6242D5 #AC42D5 #D542B5
triadic
#AC42D5 #D5AC42 #42D5AC
tetradic
#AC42D5 #D56242 #6BD542 #42B5D5
square
#AC42D5 #D56242 #6BD542 #42B5D5
split-complementary
#AC42D5 #B5D542 #42D562
monochromatic
#641C80 #8C28B2 #AC42D5 #C274E0 #D8A6EB

Accessibility & contrast

On white

4.67
#AC42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AC42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42D5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42D5#FFFFFF#000000##FFFFFF
##AC42D51.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#3D77D2
Tritanopia (blue-blind)
#A96087
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac42d5;
/* rgb */ color: rgb(172, 66, 213);
/* oklch */ color: oklch(58.7% 0.224 314.9);
Tailwind
colors: {
  custom: {
    50: '#c97fe3',
    500: '#ac42d5',
    950: '#000000',
  },
}
SCSS
$custom: #ac42d5;
$custom-light: #c97fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42d5",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 283.265,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5874,
    "c": 0.22382,
    "h": 314.9
  },
  "luminance": 0.17471
}

Semantic roles & 50–950 ramp

primary
#AC42D5
secondary
#ACD89A
accent
#E7416F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AC42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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