#AC228C#AC228C

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

Color values

HEX#AC228C
RGBrgb(172, 34, 140)
HSLhsl(314, 67%, 40%)
HSVhsv(314, 80%, 67%)
CMYKcmyk(0%, 80.2%, 18.6%, 32.5%)
CIE-LABlab(40.91, 63.16, -25.81)
CIE-LCHlch(40.91, 68.23, 337.77°)
OKLaboklab(51.74% 0.1885 -0.0698)
OKLCHoklch(51.74% 0.201 339.7)
XYZxyz(22.3196, 11.8104, 25.9101)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC228C #22AC42
analogous
#8722AC #AC228C #AC2247
triadic
#AC228C #8CAC22 #228CAC
tetradic
#AC228C #AC8722 #22AC42 #2247AC
square
#AC228C #AC8722 #22AC42 #2247AC
split-complementary
#AC228C #47AC22 #22AC87
monochromatic
#460E39 #791862 #AC228C #D734B1 #E167C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AC228C#FFFFFF#000000##FFFFFF
##AC228C1.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)
#2D538F
Deuteranopia (green-blind)
#5B6889
Tritanopia (blue-blind)
#B62856
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ac228c;
/* rgb */ color: rgb(172, 34, 140);
/* oklch */ color: oklch(51.7% 0.201 339.7);
Tailwind
colors: {
  custom: {
    50: '#c96eae',
    500: '#ac228c',
    950: '#000000',
  },
}
SCSS
$custom: #ac228c;
$custom-light: #c96eae;
$custom-dark: #000000;
JSON
{
  "hex": "#ac228c",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 313.913,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51739,
    "c": 0.20103,
    "h": 339.7
  },
  "luminance": 0.11808
}

Semantic roles & 50–950 ramp

primary
#AC228C
secondary
#63C77A
accent
#EA663E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AC228C

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

Preview Lab → · Contrast checker → · Palette generator →

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