#AC2798#AC2798

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

Color values

HEX#AC2798
RGBrgb(172, 39, 152)
HSLhsl(309, 63%, 41%)
HSVhsv(309, 77%, 67%)
CMYKcmyk(0%, 77.3%, 11.6%, 32.5%)
CIE-LABlab(41.99, 63.46, -31.42)
CIE-LCHlch(41.99, 70.82, 333.66°)
OKLaboklab(52.7% 0.1854 -0.0859)
OKLCHoklch(52.7% 0.204 335.1)
XYZxyz(23.4066, 12.4908, 30.8779)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2798 #27AC3B
analogous
#7E27AC #AC2798 #AC2756
triadic
#AC2798 #98AC27 #2798AC
tetradic
#AC2798 #AC7E27 #27AC3B #2756AC
square
#AC2798 #AC7E27 #27AC3B #2756AC
split-complementary
#AC2798 #56AC27 #27AC7E
monochromatic
#481040 #7A1C6C #AC2798 #D33DBD #DE6FCE

Accessibility & contrast

On white

6.00
#AC2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC2798
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2798#FFFFFF#000000##FFFFFF
##AC27981.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#586A95
Tritanopia (blue-blind)
#B5335E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac2798;
/* rgb */ color: rgb(172, 39, 152);
/* oklch */ color: oklch(52.7% 0.204 335.1);
Tailwind
colors: {
  custom: {
    50: '#c970b6',
    500: '#ac2798',
    950: '#000000',
  },
}
SCSS
$custom: #ac2798;
$custom-light: #c970b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2798",
  "rgb": {
    "r": 172,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 309.023,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52702,
    "c": 0.20435,
    "h": 335.1
  },
  "luminance": 0.12489
}

Semantic roles & 50–950 ramp

primary
#AC2798
secondary
#6AC577
accent
#E65A42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AC2798

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

Preview Lab → · Contrast checker → · Palette generator →

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