#AC338B#AC338B

#AC338B is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.1% C 0.182 H 340.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AC338B
RGBrgb(172, 51, 139)
HSLhsl(316, 54%, 44%)
HSVhsv(316, 70%, 67%)
CMYKcmyk(0%, 70.3%, 19.2%, 32.5%)
CIE-LABlab(42.77, 57.62, -22.32)
CIE-LCHlch(42.77, 61.79, 338.83°)
OKLaboklab(53.07% 0.172 -0.0601)
OKLCHoklch(53.07% 0.182 340.7)
XYZxyz(22.8579, 13.0046, 25.7274)
Luminance0.1300 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC338B #33AC54
analogous
#9033AC #AC338B #AC334E
triadic
#AC338B #8BAC33 #338BAC
tetradic
#AC338B #AC9033 #33AC54 #334EAC
square
#AC338B #AC9033 #33AC54 #334EAC
split-complementary
#AC338B #4EAC33 #33AC90
monochromatic
#4E173F #7D2565 #AC338B #CB51AA #D980C1

Accessibility & contrast

On white

5.83
#AC338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AC338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC338B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC338B#FFFFFF#000000##FFFFFF
##AC338B1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C598D
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#B6365A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac338b;
/* rgb */ color: rgb(172, 51, 139);
/* oklch */ color: oklch(53.1% 0.182 340.7);
Tailwind
colors: {
  custom: {
    50: '#c875ad',
    500: '#ac338b',
    950: '#000000',
  },
}
SCSS
$custom: #ac338b;
$custom-light: #c875ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ac338b",
  "rgb": {
    "r": 172,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 316.364,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53068,
    "c": 0.18214,
    "h": 340.7
  },
  "luminance": 0.13002
}

Semantic roles & 50–950 ramp

primary
#AC338B
secondary
#78C28D
accent
#DE724A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AC338B

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

Preview Lab → · Contrast checker → · Palette generator →

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