#AC229B#AC229B

#AC229B is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.211 H 334.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AC229B
RGBrgb(172, 34, 155)
HSLhsl(307, 67%, 40%)
HSVhsv(307, 80%, 67%)
CMYKcmyk(0%, 80.2%, 9.9%, 32.5%)
CIE-LABlab(41.66, 65.28, -33.74)
CIE-LCHlch(41.66, 73.49, 332.67°)
OKLaboklab(52.52% 0.1896 -0.0926)
OKLCHoklch(52.52% 0.211 334)
XYZxyz(23.5019, 12.2834, 32.1372)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC229B #22AC33
analogous
#7822AC #AC229B #AC2256
triadic
#AC229B #9BAC22 #229BAC
tetradic
#AC229B #AC7822 #22AC33 #2256AC
square
#AC229B #AC7822 #22AC33 #2256AC
split-complementary
#AC229B #56AC22 #22AC78
monochromatic
#460E3F #79186D #AC229B #D734C3 #E167D2

Accessibility & contrast

On white

6.08
#AC229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AC229B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC229B
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC229B#FFFFFF#000000##FFFFFF
##AC229B1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D569E
Deuteranopia (green-blind)
#556998
Tritanopia (blue-blind)
#B4315E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ac229b;
/* rgb */ color: rgb(172, 34, 155);
/* oklch */ color: oklch(52.5% 0.211 334.0);
Tailwind
colors: {
  custom: {
    50: '#c96fb9',
    500: '#ac229b',
    950: '#000000',
  },
}
SCSS
$custom: #ac229b;
$custom-light: #c96fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac229b",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 307.391,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52521,
    "c": 0.21102,
    "h": 334
  },
  "luminance": 0.12281
}

Semantic roles & 50–950 ramp

primary
#AC229B
secondary
#63C76F
accent
#EA533E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AC229B

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

Preview Lab → · Contrast checker → · Palette generator →

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