#AC1F9F#AC1F9F

#AC1F9F is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.216 H 332.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AC1F9F
RGBrgb(172, 31, 159)
HSLhsl(306, 69%, 40%)
HSVhsv(306, 82%, 67%)
CMYKcmyk(0%, 82%, 7.6%, 32.5%)
CIE-LABlab(41.62, 66.62, -36.22)
CIE-LCHlch(41.62, 75.83, 331.47°)
OKLaboklab(52.56% 0.1919 -0.0997)
OKLCHoklch(52.56% 0.216 332.5)
XYZxyz(23.7614, 12.2559, 33.9084)
Luminance0.1225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC1F9F #1FAC2C
analogous
#731FAC #AC1F9F #AC1F58
triadic
#AC1F9F #9FAC1F #1F9FAC
tetradic
#AC1F9F #AC731F #1FAC2C #1F58AC
square
#AC1F9F #AC731F #1FAC2C #1F58AC
split-complementary
#AC1F9F #58AC1F #1FAC73
monochromatic
#440C3F #78166F #AC1F9F #D92FCA #E363D7

Accessibility & contrast

On white

6.09
#AC1F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AC1F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC1F9F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC1F9F#FFFFFF#000000##FFFFFF
##AC1F9F1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1256A2
Deuteranopia (green-blind)
#52699C
Tritanopia (blue-blind)
#B43260
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ac1f9f;
/* rgb */ color: rgb(172, 31, 159);
/* oklch */ color: oklch(52.6% 0.216 332.5);
Tailwind
colors: {
  custom: {
    50: '#c96ebc',
    500: '#ac1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #ac1f9f;
$custom-light: #c96ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#ac1f9f",
  "rgb": {
    "r": 172,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 305.532,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.21626,
    "h": 332.5
  },
  "luminance": 0.12254
}

Semantic roles & 50–950 ramp

primary
#AC1F9F
secondary
#5FC869
accent
#EC4C3C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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