#AC42DB#AC42DB

#AC42DB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.229 H 313.3°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AC42DB
RGBrgb(172, 66, 219)
HSLhsl(282, 68%, 56%)
HSVhsv(282, 70%, 86%)
CMYKcmyk(21.5%, 69.9%, 0%, 14.1%)
CIE-LABlab(49.23, 65.74, -59.12)
CIE-LCHlch(49.23, 88.42, 318.03°)
OKLaboklab(59.13% 0.1574 -0.1668)
OKLCHoklch(59.13% 0.229 313.3)
XYZxyz(31.7454, 17.7825, 68.7642)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42DB #71DB42
analogous
#5F42DB #AC42DB #DB42BD
triadic
#AC42DB #DBAC42 #42DBAC
tetradic
#AC42DB #DB5F42 #71DB42 #42BDDB
square
#AC42DB #DB5F42 #71DB42 #42BDDB
split-complementary
#AC42DB #BDDB42 #42DB5F
monochromatic
#671A89 #8D24BC #AC42DB #C375E5 #D9A9EF

Accessibility & contrast

On white

4.61
#AC42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AC42DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42DB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42DB#FFFFFF#000000##FFFFFF
##AC42DB1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#3677D8
Tritanopia (blue-blind)
#A7628A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ac42db;
/* rgb */ color: rgb(172, 66, 219);
/* oklch */ color: oklch(59.1% 0.229 313.3);
Tailwind
colors: {
  custom: {
    50: '#c97fe7',
    500: '#ac42db',
    950: '#000000',
  },
}
SCSS
$custom: #ac42db;
$custom-light: #c97fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42db",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 281.569,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59134,
    "c": 0.22935,
    "h": 313.3
  },
  "luminance": 0.17782
}

Semantic roles & 50–950 ramp

primary
#AC42DB
secondary
#B0DC9D
accent
#EB3D72
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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