#AC1F98#AC1F98

#AC1F98 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.211 H 335.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AC1F98
RGBrgb(172, 31, 152)
HSLhsl(309, 69%, 40%)
HSVhsv(309, 82%, 67%)
CMYKcmyk(0%, 82%, 11.6%, 32.5%)
CIE-LABlab(41.25, 65.59, -32.59)
CIE-LCHlch(41.25, 73.24, 333.58°)
OKLaboklab(52.17% 0.1917 -0.0892)
OKLCHoklch(52.17% 0.211 335)
XYZxyz(23.1711, 12.0198, 30.7994)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC1F98 #1FAC33
analogous
#7A1FAC #AC1F98 #AC1F51
triadic
#AC1F98 #98AC1F #1F98AC
tetradic
#AC1F98 #AC7A1F #1FAC33 #1F51AC
square
#AC1F98 #AC7A1F #1FAC33 #1F51AC
split-complementary
#AC1F98 #51AC1F #1FAC7A
monochromatic
#440C3C #78166A #AC1F98 #D92FC1 #E363D1

Accessibility & contrast

On white

6.17
#AC1F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AC1F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC1F98
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC1F98#FFFFFF#000000##FFFFFF
##AC1F981.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549B
Deuteranopia (green-blind)
#556895
Tritanopia (blue-blind)
#B52D5C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ac1f98;
/* rgb */ color: rgb(172, 31, 152);
/* oklch */ color: oklch(52.2% 0.211 335.0);
Tailwind
colors: {
  custom: {
    50: '#c96eb7',
    500: '#ac1f98',
    950: '#000000',
  },
}
SCSS
$custom: #ac1f98;
$custom-light: #c96eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac1f98",
  "rgb": {
    "r": 172,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 308.511,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52173,
    "c": 0.21146,
    "h": 335
  },
  "luminance": 0.12018
}

Semantic roles & 50–950 ramp

primary
#AC1F98
secondary
#5FC86E
accent
#EC553C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AC1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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