#AC338D#AC338D

#AC338D is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.2% C 0.183 H 339.9°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AC338D
RGBrgb(172, 51, 141)
HSLhsl(315, 54%, 44%)
HSVhsv(315, 70%, 67%)
CMYKcmyk(0%, 70.3%, 18%, 32.5%)
CIE-LABlab(42.86, 57.90, -23.40)
CIE-LCHlch(42.86, 62.45, 338.00°)
OKLaboklab(53.16% 0.1723 -0.0631)
OKLCHoklch(53.16% 0.183 339.9)
XYZxyz(23.0054, 13.0636, 26.5041)
Luminance0.1306 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC338D #33AC52
analogous
#8E33AC #AC338D #AC3350
triadic
#AC338D #8DAC33 #338DAC
tetradic
#AC338D #AC8E33 #33AC52 #3350AC
square
#AC338D #AC8E33 #33AC52 #3350AC
split-complementary
#AC338D #50AC33 #33AC8E
monochromatic
#4E1740 #7D2566 #AC338D #CB51AC #D980C2

Accessibility & contrast

On white

5.81
#AC338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AC338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC338D
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC338D#FFFFFF#000000##FFFFFF
##AC338D1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5990
Deuteranopia (green-blind)
#616C8A
Tritanopia (blue-blind)
#B6375B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac338d;
/* rgb */ color: rgb(172, 51, 141);
/* oklch */ color: oklch(53.2% 0.183 339.9);
Tailwind
colors: {
  custom: {
    50: '#c875ae',
    500: '#ac338d',
    950: '#000000',
  },
}
SCSS
$custom: #ac338d;
$custom-light: #c875ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ac338d",
  "rgb": {
    "r": 172,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 315.372,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53162,
    "c": 0.18348,
    "h": 339.9
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#AC338D
secondary
#78C28B
accent
#DE704A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AC338D

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

Preview Lab → · Contrast checker → · Palette generator →

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