#AC42D8#AC42D8

#AC42D8 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.227 H 314.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AC42D8
RGBrgb(172, 66, 216)
HSLhsl(282, 66%, 55%)
HSVhsv(282, 69%, 85%)
CMYKcmyk(20.4%, 69.4%, 0%, 15.3%)
CIE-LABlab(49.04, 65.14, -57.72)
CIE-LCHlch(49.04, 87.03, 318.45°)
OKLaboklab(58.94% 0.1577 -0.1627)
OKLCHoklch(58.94% 0.227 314.1)
XYZxyz(31.3540, 17.6260, 66.7030)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42D8 #6ED842
analogous
#6142D8 #AC42D8 #D842B9
triadic
#AC42D8 #D8AC42 #42D8AC
tetradic
#AC42D8 #D86142 #6ED842 #42B9D8
square
#AC42D8 #D86142 #6ED842 #42B9D8
split-complementary
#AC42D8 #B9D842 #42D861
monochromatic
#651B84 #8C26B7 #AC42D8 #C275E2 #D9A7ED

Accessibility & contrast

On white

4.64
#AC42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AC42D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42D8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42D8#FFFFFF#000000##FFFFFF
##AC42D81.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#3A77D5
Tritanopia (blue-blind)
#A86189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac42d8;
/* rgb */ color: rgb(172, 66, 216);
/* oklch */ color: oklch(58.9% 0.227 314.1);
Tailwind
colors: {
  custom: {
    50: '#c97fe5',
    500: '#ac42d8',
    950: '#000000',
  },
}
SCSS
$custom: #ac42d8;
$custom-light: #c97fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42d8",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 282.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58936,
    "c": 0.22658,
    "h": 314.1
  },
  "luminance": 0.17625
}

Semantic roles & 50–950 ramp

primary
#AC42D8
secondary
#AEDA9C
accent
#E93F71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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