#AC42CB#AC42CB

#AC42CB is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.215 H 317.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AC42CB
RGBrgb(172, 66, 203)
HSLhsl(286, 57%, 53%)
HSVhsv(286, 67%, 80%)
CMYKcmyk(15.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(48.23, 62.57, -51.56)
CIE-LCHlch(48.23, 81.08, 320.51°)
OKLaboklab(58.1% 0.1586 -0.1446)
OKLCHoklch(58.1% 0.215 317.6)
XYZxyz(29.7394, 16.9801, 58.1993)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42CB #61CB42
analogous
#6742CB #AC42CB #CB42A6
triadic
#AC42CB #CBAC42 #42CBAC
tetradic
#AC42CB #CB6742 #61CB42 #42A6CB
square
#AC42CB #CB6742 #61CB42 #42A6CB
split-complementary
#AC42CB #A6CB42 #42CB67
monochromatic
#602073 #882DA3 #AC42CB #C172D8 #D6A2E5

Accessibility & contrast

On white

4.78
#AC42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AC42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC42CB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42CB#FFFFFF#000000##FFFFFF
##AC42CB1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#4776C8
Tritanopia (blue-blind)
#AB5C81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac42cb;
/* rgb */ color: rgb(172, 66, 203);
/* oklch */ color: oklch(58.1% 0.215 317.6);
Tailwind
colors: {
  custom: {
    50: '#c87edb',
    500: '#ac42cb',
    950: '#000000',
  },
}
SCSS
$custom: #ac42cb;
$custom-light: #c87edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42cb",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 286.423,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58103,
    "c": 0.21467,
    "h": 317.6
  },
  "luminance": 0.16979
}

Semantic roles & 50–950 ramp

primary
#AC42CB
secondary
#A4D297
accent
#E0486A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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