#AC2897#AC2897

#AC2897 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.203 H 335.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AC2897
RGBrgb(172, 40, 151)
HSLhsl(310, 62%, 42%)
HSVhsv(310, 77%, 67%)
CMYKcmyk(0%, 76.7%, 12.2%, 32.5%)
CIE-LABlab(42.04, 63.02, -30.74)
CIE-LCHlch(42.04, 70.12, 334.00°)
OKLaboklab(52.72% 0.1845 -0.084)
OKLCHoklch(52.72% 0.203 335.5)
XYZxyz(23.3583, 12.5247, 30.4595)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2897 #28AC3D
analogous
#7F28AC #AC2897 #AC2855
triadic
#AC2897 #97AC28 #2897AC
tetradic
#AC2897 #AC7F28 #28AC3D #2855AC
square
#AC2897 #AC7F28 #28AC3D #2855AC
split-complementary
#AC2897 #55AC28 #28AC7F
monochromatic
#491140 #7A1C6B #AC2897 #D23FBB #DE71CC

Accessibility & contrast

On white

5.99
#AC2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AC2897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC2897
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2897#FFFFFF#000000##FFFFFF
##AC28971.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#596A94
Tritanopia (blue-blind)
#B5335D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac2897;
/* rgb */ color: rgb(172, 40, 151);
/* oklch */ color: oklch(52.7% 0.203 335.5);
Tailwind
colors: {
  custom: {
    50: '#c971b6',
    500: '#ac2897',
    950: '#000000',
  },
}
SCSS
$custom: #ac2897;
$custom-light: #c971b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2897",
  "rgb": {
    "r": 172,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 309.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.20268,
    "h": 335.5
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#AC2897
secondary
#6BC579
accent
#E55C42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AC2897

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

Preview Lab → · Contrast checker → · Palette generator →

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