#AC42CA#AC42CA

#AC42CA is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.214 H 317.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AC42CA
RGBrgb(172, 66, 202)
HSLhsl(287, 56%, 53%)
HSVhsv(287, 67%, 79%)
CMYKcmyk(14.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(48.17, 62.37, -51.08)
CIE-LCHlch(48.17, 80.62, 320.68°)
OKLaboklab(58.04% 0.1587 -0.1432)
OKLCHoklch(58.04% 0.214 317.9)
XYZxyz(29.6206, 16.9326, 57.5737)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42CA #60CA42
analogous
#6842CA #AC42CA #CA42A4
triadic
#AC42CA #CAAC42 #42CAAC
tetradic
#AC42CA #CA6842 #60CA42 #42A4CA
square
#AC42CA #CA6842 #60CA42 #42A4CA
split-complementary
#AC42CA #A4CA42 #42CA68
monochromatic
#602072 #882DA2 #AC42CA #C172D7 #D6A2E5

Accessibility & contrast

On white

4.79
#AC42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AC42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42CA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42CA#FFFFFF#000000##FFFFFF
##AC42CA1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#4776C7
Tritanopia (blue-blind)
#AB5B81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac42ca;
/* rgb */ color: rgb(172, 66, 202);
/* oklch */ color: oklch(58.0% 0.214 317.9);
Tailwind
colors: {
  custom: {
    50: '#c87edb',
    500: '#ac42ca',
    950: '#000000',
  },
}
SCSS
$custom: #ac42ca;
$custom-light: #c87edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42ca",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 286.765,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58041,
    "c": 0.21376,
    "h": 317.9
  },
  "luminance": 0.16931
}

Semantic roles & 50–950 ramp

primary
#AC42CA
secondary
#A3D196
accent
#DF486A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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