#AC42C8#AC42C8

#AC42C8 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.212 H 318.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AC42C8
RGBrgb(172, 66, 200)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 67%, 78%)
CMYKcmyk(14%, 67%, 0%, 21.6%)
CIE-LABlab(48.06, 61.99, -50.12)
CIE-LCHlch(48.06, 79.71, 321.04°)
OKLaboklab(57.92% 0.1588 -0.1404)
OKLCHoklch(57.92% 0.212 318.5)
XYZxyz(29.3854, 16.8385, 56.3347)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42C8 #5EC842
analogous
#6942C8 #AC42C8 #C842A1
triadic
#AC42C8 #C8AC42 #42C8AC
tetradic
#AC42C8 #C86942 #5EC842 #42A1C8
square
#AC42C8 #C86942 #5EC842 #42A1C8
split-complementary
#AC42C8 #A1C842 #42C869
monochromatic
#5F206F #872E9F #AC42C8 #C171D6 #D6A1E4

Accessibility & contrast

On white

4.81
#AC42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AC42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42C8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42C8#FFFFFF#000000##FFFFFF
##AC42C81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066BCC
Deuteranopia (green-blind)
#4976C5
Tritanopia (blue-blind)
#AC5B80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac42c8;
/* rgb */ color: rgb(172, 66, 200);
/* oklch */ color: oklch(57.9% 0.212 318.5);
Tailwind
colors: {
  custom: {
    50: '#c87ed9',
    500: '#ac42c8',
    950: '#000000',
  },
}
SCSS
$custom: #ac42c8;
$custom-light: #c87ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42c8",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 287.463,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57917,
    "c": 0.21194,
    "h": 318.5
  },
  "luminance": 0.16837
}

Semantic roles & 50–950 ramp

primary
#AC42C8
secondary
#A2D096
accent
#DE4A69
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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