#AC229E#AC229E

#AC229E is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.7% C 0.213 H 332.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AC229E
RGBrgb(172, 34, 158)
HSLhsl(306, 67%, 40%)
HSVhsv(306, 80%, 67%)
CMYKcmyk(0%, 80.2%, 8.1%, 32.5%)
CIE-LABlab(41.82, 65.73, -35.30)
CIE-LCHlch(41.82, 74.60, 331.76°)
OKLaboklab(52.69% 0.1897 -0.0971)
OKLCHoklch(52.69% 0.213 332.9)
XYZxyz(23.7570, 12.3854, 33.4805)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC229E #22AC30
analogous
#7522AC #AC229E #AC2259
triadic
#AC229E #9EAC22 #229EAC
tetradic
#AC229E #AC7522 #22AC30 #2259AC
square
#AC229E #AC7522 #22AC30 #2259AC
split-complementary
#AC229E #59AC22 #22AC75
monochromatic
#460E40 #79186F #AC229E #D734C6 #E167D5

Accessibility & contrast

On white

6.04
#AC229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AC229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC229E
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC229E#FFFFFF#000000##FFFFFF
##AC229E1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1956A1
Deuteranopia (green-blind)
#53699B
Tritanopia (blue-blind)
#B43360
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac229e;
/* rgb */ color: rgb(172, 34, 158);
/* oklch */ color: oklch(52.7% 0.213 332.9);
Tailwind
colors: {
  custom: {
    50: '#c96fbb',
    500: '#ac229e',
    950: '#000000',
  },
}
SCSS
$custom: #ac229e;
$custom-light: #c96fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac229e",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 306.087,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52686,
    "c": 0.21311,
    "h": 332.9
  },
  "luminance": 0.12383
}

Semantic roles & 50–950 ramp

primary
#AC229E
secondary
#63C76D
accent
#EA4F3E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC229E

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

Preview Lab → · Contrast checker → · Palette generator →

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