#AC42B2#AC42B2

#AC42B2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.6% C 0.192 H 325.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AC42B2
RGBrgb(172, 66, 178)
HSLhsl(297, 46%, 48%)
HSVhsv(297, 63%, 70%)
CMYKcmyk(3.4%, 62.9%, 0%, 30.2%)
CIE-LABlab(46.82, 57.89, -39.28)
CIE-LCHlch(46.82, 69.96, 325.85°)
OKLaboklab(56.63% 0.1587 -0.1088)
OKLCHoklch(56.63% 0.192 325.6)
XYZxyz(26.9968, 15.8831, 43.7546)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42B2 #48B242
analogous
#7442B2 #AC42B2 #B24280
triadic
#AC42B2 #B2AC42 #42B2AC
tetradic
#AC42B2 #B27442 #48B242 #4280B2
square
#AC42B2 #B27442 #48B242 #4280B2
split-complementary
#AC42B2 #80B242 #42B274
monochromatic
#562159 #813185 #AC42B2 #C36AC8 #D596D8

Accessibility & contrast

On white

5.03
#AC42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AC42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42B2#FFFFFF#000000##FFFFFF
##AC42B21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#B05274
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ac42b2;
/* rgb */ color: rgb(172, 66, 178);
/* oklch */ color: oklch(56.6% 0.192 325.6);
Tailwind
colors: {
  custom: {
    50: '#c87ec9',
    500: '#ac42b2',
    950: '#000000',
  },
}
SCSS
$custom: #ac42b2;
$custom-light: #c87ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42b2",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 296.786,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56627,
    "c": 0.19239,
    "h": 325.6
  },
  "luminance": 0.15881
}

Semantic roles & 50–950 ramp

primary
#AC42B2
secondary
#8FC48C
accent
#D65259
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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