#AC2898#AC2898

#AC2898 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.203 H 335.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AC2898
RGBrgb(172, 40, 152)
HSLhsl(309, 62%, 42%)
HSVhsv(309, 77%, 67%)
CMYKcmyk(0%, 76.7%, 11.6%, 32.5%)
CIE-LABlab(42.09, 63.17, -31.26)
CIE-LCHlch(42.09, 70.48, 333.67°)
OKLaboklab(52.78% 0.1845 -0.0855)
OKLCHoklch(52.78% 0.203 335.1)
XYZxyz(23.4399, 12.5574, 30.8890)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2898 #28AC3C
analogous
#7E28AC #AC2898 #AC2856
triadic
#AC2898 #98AC28 #2898AC
tetradic
#AC2898 #AC7E28 #28AC3C #2856AC
square
#AC2898 #AC7E28 #28AC3C #2856AC
split-complementary
#AC2898 #56AC28 #28AC7E
monochromatic
#491140 #7A1C6C #AC2898 #D23FBC #DE71CD

Accessibility & contrast

On white

5.98
#AC2898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AC2898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC2898
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2898#FFFFFF#000000##FFFFFF
##AC28981.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ac2898;
/* rgb */ color: rgb(172, 40, 152);
/* oklch */ color: oklch(52.8% 0.203 335.1);
Tailwind
colors: {
  custom: {
    50: '#c971b6',
    500: '#ac2898',
    950: '#000000',
  },
}
SCSS
$custom: #ac2898;
$custom-light: #c971b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2898",
  "rgb": {
    "r": 172,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 309.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52775,
    "c": 0.20337,
    "h": 335.1
  },
  "luminance": 0.12555
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC2898

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

Preview Lab → · Contrast checker → · Palette generator →

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