#AC218E#AC218E

#AC218E is a mid, highly saturated pink. Relative luminance 0.118; OKLCH L 51.8% C 0.203 H 338.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AC218E
RGBrgb(172, 33, 142)
HSLhsl(313, 68%, 40%)
HSVhsv(313, 81%, 67%)
CMYKcmyk(0%, 80.8%, 17.4%, 32.5%)
CIE-LABlab(40.92, 63.69, -27.02)
CIE-LCHlch(40.92, 69.19, 337.01°)
OKLaboklab(51.77% 0.1895 -0.0733)
OKLCHoklch(51.77% 0.203 338.9)
XYZxyz(22.4402, 11.8136, 26.6844)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC218E #21AC3F
analogous
#8521AC #AC218E #AC2148
triadic
#AC218E #8EAC21 #218EAC
tetradic
#AC218E #AC8521 #21AC3F #2148AC
square
#AC218E #AC8521 #21AC3F #2148AC
split-complementary
#AC218E #48AC21 #21AC85
monochromatic
#450D39 #791764 #AC218E #D832B4 #E266C7

Accessibility & contrast

On white

6.25
#AC218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AC218E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC218E
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC218E#FFFFFF#000000##FFFFFF
##AC218E1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5391
Deuteranopia (green-blind)
#5A688B
Tritanopia (blue-blind)
#B62957
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ac218e;
/* rgb */ color: rgb(172, 33, 142);
/* oklch */ color: oklch(51.8% 0.203 338.9);
Tailwind
colors: {
  custom: {
    50: '#c96eaf',
    500: '#ac218e',
    950: '#000000',
  },
}
SCSS
$custom: #ac218e;
$custom-light: #c96eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#ac218e",
  "rgb": {
    "r": 172,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 312.95,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51774,
    "c": 0.20318,
    "h": 338.9
  },
  "luminance": 0.11811
}

Semantic roles & 50–950 ramp

primary
#AC218E
secondary
#62C778
accent
#EB633D
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AC218E

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

Preview Lab → · Contrast checker → · Palette generator →

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