#AC1F9B#AC1F9B

#AC1F9B is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.213 H 334.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AC1F9B
RGBrgb(172, 31, 155)
HSLhsl(307, 69%, 40%)
HSVhsv(307, 82%, 67%)
CMYKcmyk(0%, 82%, 9.9%, 32.5%)
CIE-LABlab(41.41, 66.03, -34.15)
CIE-LCHlch(41.41, 74.34, 332.65°)
OKLaboklab(52.34% 0.1918 -0.0937)
OKLCHoklch(52.34% 0.214 334)
XYZxyz(23.4199, 12.1193, 32.1098)
Luminance0.1212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC1F9B #1FAC30
analogous
#771FAC #AC1F9B #AC1F55
triadic
#AC1F9B #9BAC1F #1F9BAC
tetradic
#AC1F9B #AC771F #1FAC30 #1F55AC
square
#AC1F9B #AC771F #1FAC30 #1F55AC
split-complementary
#AC1F9B #55AC1F #1FAC77
monochromatic
#440C3E #78166C #AC1F9B #D92FC5 #E363D3

Accessibility & contrast

On white

6.13
#AC1F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AC1F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC1F9B
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC1F9B#FFFFFF#000000##FFFFFF
##AC1F9B1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A559E
Deuteranopia (green-blind)
#546998
Tritanopia (blue-blind)
#B42F5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ac1f9b;
/* rgb */ color: rgb(172, 31, 155);
/* oklch */ color: oklch(52.3% 0.213 334.0);
Tailwind
colors: {
  custom: {
    50: '#c96eb9',
    500: '#ac1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #ac1f9b;
$custom-light: #c96eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac1f9b",
  "rgb": {
    "r": 172,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 307.234,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52336,
    "c": 0.2135,
    "h": 334
  },
  "luminance": 0.12117
}

Semantic roles & 50–950 ramp

primary
#AC1F9B
secondary
#5FC86C
accent
#EC513C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AC1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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